-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Invalid Unicode escape sequence from _buildManifest.js #17056
Comments
Just hit this today. The HTTP response looks truncated with unclosed JSON. Is there any update? |
@ShikChen did you encounter this in a blitz project or regular next.js? |
It's a blitz project. |
I just started seeing this when updating from node 16.6.2 to 16.13.0, no other changes. |
@flybayer I don't think it's because of blitz.js. it happened to me in a regular project (version=12.0.4) |
So we're struggling with this in our current project. All other bundlers that we're testing (webpack 4/5, vite, rollup, parcel) work without any issue. it builds (i.e. It does not run in prod mode (i.e. I've verified and What is going on here? EDIT: I've made some more investigation... The original code in one of the library in the The code in the bundle that next.js generates is broken for this part - i.e. it is converted into If we bundle our library with a tool like There's clearly something wrong with next.js bundling... EDIT 2: we've also tried to use the above esbuild bundle in the next.js directly... do Our package.json has but it seems that we've hit this #31518 (comment) This is madness :-) EDIT 3 It seems that this double nested template string is generated by the bundlers - from sth. like plain string concatenation - so it's really hard to say which library exactly is the source of the issue (but again - it's not the library that is the issue - it's the bundler). And as I've mentioned - the We're using next.js /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
module.exports = nextConfig EDIT 4 Switching |
This PR updates SWC crates to swc-project/swc@f2a0eef --- - Closes #17056 Co-authored-by: Jiachi Liu <inbox@huozhi.im> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This PR updates SWC crates to swc-project/swc@f2a0eef --- - Closes vercel#17056 Co-authored-by: Jiachi Liu <inbox@huozhi.im> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@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. |
Bug report
Describe the bug
Roughly 5-10% of the time when starting the Next.js dev server in Blitz.js results in the below error in the browser immediately after first page load. This error shows in the dev error overlay and in the browser console.
Before
9.5.3
, it would show as something likes is undefined
.Note: we do have concurrent mode enabled, so possibly it could have something to do with that?
To Reproduce
I'm unable to reliably reproduce, but here's how it happens:
npx blitz new testapp
cd testapp
yarn blitz start
localhost:3000
link as soon as it appears from the Next.js dev serverExpected behavior
Should not error
System information
System:
OS: macOS 10.15.6
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 614.28 MB / 64.00 GB
Shell: 3.1.2 - /usr/local/bin/fish
Next.js: 9.5.3
The text was updated successfully, but these errors were encountered: