Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styled-jsx/macro.d.ts typo #821

Closed
I-vasilich-I opened this issue Dec 14, 2022 · 1 comment · Fixed by #822
Closed

styled-jsx/macro.d.ts typo #821

I-vasilich-I opened this issue Dec 14, 2022 · 1 comment · Fixed by #822

Comments

@I-vasilich-I
Copy link

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

@github-actions
Copy link

🎉 This issue has been resolved in version 5.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants