-
Notifications
You must be signed in to change notification settings - Fork 28.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
Swc causing error in production. Related to citation-js and citeproc. #69150
Comments
@jonluca The |
That would do it! thanks @darthmaim |
This is a life saver because all my new builds are failing deterministically and I am scrathcing head finding the root cause, only to notice that it's node new version release breaking it. I have filed nodejs/node#54532 so hopefully node.js team can fix it. |
Got Tenser errors with node.js -v 22.7.0. No error when using node.js -v 20.17.0. |
Did you try the latest canary? |
I can't run your repro because of |
Node 22.8. fixed this 🥳 |
@crazyWolf-cz Just experienced this with v22.8.0 (Next v14.2.11) |
Can you try 15 canary? I couldn't backport the SWC minifier because of some Rust-side restrictions related to swc_core, but those issues should be fixed already in the upstream. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/igloo1505/ulldApp
To Reproduce
I'm building two separate but related projects that are intended to work together. One is a large monorepo, the other is a single Next app currently on 14.2.5. You can clone the single app at the repo here, but it will require an
appConfig.ulld.json
file at the root of that project that would look something likeappConfig.ulld.json to build and run without blowing up.
Current vs. Expected behavior
The app would produce an error that was related to one of
citation-js
's dependencies,citeproc
which was apparently generated by swc. It ran flawlessly in development, but output this error in production:Disabling swc with
swcMinify: false
resolved the issue, but I'm posting here so that you're aware for[email protected]
when that option won't be available.There was a related issue submitted by the
citation-js
author here, but it was close due to inactivity.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 22.4.1 npm: 10.8.1 Yarn: 4.3.1 pnpm: 9.7.1 Relevant Packages: next: 14.2.5 // Latest available version is detected (14.2.5). eslint-config-next: 14.2.5 react: 18.2.0 react-dom: 18.2.0 typescript: 5.5.4 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Runtime, SWC
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: