Closed
Description
Do you want to request a feature or report a bug?
What is the current behavior?
/node_modules/styled-jsx/macro.d.ts' is not a module.ts(2306)
If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar
trying to use import css from "styled-jsx/macro";
with create-react-app
I believe the problem is in the typo - macro <--> marco
declare module 'styled-jsx/marco' {
namespace marco {
function resolve(
chunks: TemplateStringsArray,
...args: any[]
): {
className: string
styles: JSX.Element
}
}
export = marco
}
fixing that locally solved the problem
What is the expected behavior?
should import without errors
Environment (include versions)
- Version of styled-jsx (or next.js if it's being used): "styled-jsx": "5.1.0",
- Browser:
- OS:
Did this work in previous versions?
don't have that info, but it seams to me that this commit is related to the problem 22e36bf