Repository navigation
SWC + next.js + Node.js v22.7 #54532
Description
Activity
Hi! Could you provide a minimal reproduction?
- addedregressionIssues related to regressions.Issues related to regressions.v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
on Aug 24, 2024 Hi! Could you provide a minimal reproduction?
There's also a few replicable examples here: vercel/next.js#69263
Reacted by Jack Winfieldv22.8.0 is releasing soon with patches for a few buffer issues, so if this is related, that may fix it.
Reacted by ViggoV and crazyWolfThis completely breaks NextJS for me. I think you should check if 22.8 fixes it, because it is a fairly big problem.
- addedbufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.
on Aug 26, 2024 FWIW, Regarding whether this is a buffer issue or not, I've confirmed it is. looking at the offending code,
It's calling:bindings.minify(toBuffer(src), toBuffer(options ?? {}));
Reference A: https://www.npmjs.com/package/next?activeTab=code (Line 814)
Reference B: https://github.com/swc-project/swc/blob/d068a63ba218a0884de5cbd10764f3f6f652bc5c/packages/core/src/index.ts#L66Sorry was enjoying my weekend, but good to know that it's possibly fix at v22.8. I'll wait and see if v22.8 fixes this! (I assume no repro is needed?)
- added 2 commits that reference this issue
on Aug 27, 2024 - addedduplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.and removedbufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.regressionIssues related to regressions.Issues related to regressions.v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
on Aug 29, 2024 Sorry was enjoying my weekend, but good to know that it's possibly fix at v22.8. I'll wait and see if v22.8 fixes this! (I assume no repro is needed?)
I just experienced this on v22.8.0 (Next v14.2.11). Downgrading to v20.17.0 solved the issue for me.
Sorry was enjoying my weekend, but good to know that it's possibly fix at v22.8. I'll wait and see if v22.8 fixes this! (I assume no repro is needed?)
I just experienced this on v22.8.0 (Next v14.2.11). Downgrading to v20.17.0 solved the issue for me.
22.8 should work (at least for me), the CI I am running is using 22.8 and it never failed because of this error, maybe check node version using command first?
Version
v22.7
Platform
Subsystem
No response
What steps will reproduce the bug?
next devHow often does it reproduce? Is there a required condition?
Deterministic (everytime).
What is the expected behavior? Why is that the expected behavior?
No error.
What do you see instead?
For others: vercel/next.js#69150 (the actual repo that I realized it's 22.7 release breaking it).
For myself, my CI starts deterministically failing on Aug. 21 (22.7 release date), and the error (One of the failed CI) is always the same of saying "invalid unicode code point."
Additional information
No response