-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Can't transpile a babel macro project #33003
Comments
This comment has been minimized.
This comment has been minimized.
Related stacktrace of the error:
|
The problem originates from the
Related bug there: browserify/resolve#264 |
@benbender is I added it to with-babel-macros package file, perform a npm install and the error is still there. |
@Kikobeats pnpm in this case. Yarn has a similar setting. I'm unsure about the latest npm. |
It still doesn't work to me, but closing the issue since it isn't a Next.js thing. |
@Kikobeats did you pin it to |
This bumps `@vercel/nft` to the latest version and consequently bumps `graceful-fs` to the latest version. - Fixes #33003 - Related to vercel/nft#258 - Related to browserify/resolve#264 Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
I have exact same issue, and i found SWC is the cause. |
@yoshi49535 not directly, see vercel/nft#257 |
Please try the latest release v12.0.8-canary.19 using |
@styfle yes, I can confirm that the error is absent in |
Works I can confirm. Thanks so much, spent so much time on that! |
@styfle Can I use this change with |
This bumps `@vercel/nft` to the latest version and consequently bumps `graceful-fs` to the latest version. - Fixes vercel#33003 - Related to vercel/nft#258 - Related to browserify/resolve#264 Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Run
next info
(available from version 12.0.8 and up)next info
is still not available, but I runnpx envinfo --binaries --system
:What version of Next.js are you using?
12.0.8-canary.16
What version of Node.js are you using?
v16.13.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
For some reason, Next.js can't transpile
.macro
files.The terminal is reporting something related to an
uid
, looks like an internal thing:I think what is happening is since the macro file is called
*.macro.js
, Next.js is wrongly interpreting it instead of leveraging to babel-plugin-macros for doing the job.Expected Behavior
The macro should be interpreted by the babel plugin, not being interfered with by the Next.js internal compiler.
To Reproduce
just clone with-babel-macros
The text was updated successfully, but these errors were encountered: