Uncaught MacroError: The macro you imported from "undefined" is being executed outside the context of compilation with babel-plugin-macros #751
Unanswered
AhmadRazaJamal
asked this question in
Q&A
Replies: 1 comment
-
@AhmadRazaJamal Twin isn't yet compatible with Next's SWC compiler. See discussion thread #516 You can use Twin with Next by setting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just moved my project to a mono repo structure with Vercel's turborepo. I am having a very weird issue where it says the macro is undefined. I tried adding the babel.config file everywhere and the error still exists!
Source of error: one of the packages called shared that uses twin.macro.
The project is written in Next.js and we use tailwind with tw. Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions