Open igloo1505 opened 1 month ago
We're also seeing this issue as well for what its worth. Disabling swcMinify
fixes it.
@jonluca The invalid unicode point
error is caused by Node.js 22.7.0, downgrading to Node.js 22.6.0 fixes that error. This is not caused by Next.js.
That would do it! thanks @darthmaim
@jonluca The
invalid unicode point
error is caused by Node.js 22.7.0, downgrading to Node.js 22.6.0 fixes that error. This is not caused by Next.js.
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 https://github.com/nodejs/node/issues/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 ulldBuildData.json"
.
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.
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 like appConfig.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 fornext@15.x.x
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
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