Invalid Unicode escape sequence from _buildManifest.js
See original GitHub issueBug 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.
SyntaxError: Invalid Unicode escape sequence _buildManifest.js:1
Before 9.5.3
, it would show as something like s 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
- Immediately click the
localhost:3000
link as soon as it appears from the Next.js dev server - Repeat steps 3 & 4 until you see the error
Expected behavior
Should not error
System information
System: OS: macOS 10.15.6 CPU: (16) x64 Intel® Core™ 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Invalid Unicode Escape Sequence with correct syntax (JS)
Occasionally when this is ran in a console, an Uncaught SyntaxError: Invalid Unicode escape sequence occurs. The error is in the eval uation ......
Read more >Invalid unicode sequence when exporting strings
Putting in the actual character does work to silence the message. However in this case it's a non-breaking space and there is value...
Read more >Unicode property escapes - JavaScript - MDN Web Docs
Unicode property escapes Regular Expressions allows for matching characters based on their Unicode properties. A character is described by ...
Read more >Merge resources fails on escaped string resource [183860580]
We discovered an issue where merge resources would fail with. "error: Invalid unicode escape sequence in string". on a resource that's escaped correctly....
Read more >Error in runEval condition of if: Invalid Unicode escape ...
Hi Team, for some image url to upload, the macro prompts out the “[error] Error in runEval condition of if: Invalid Unicode escape...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@flybayer I don’t think it’s because of blitz.js. it happened to me in a regular project (version=12.0.4) did you find the reason and solution also I encounter it in development I didn’t test it on production
It’s a blitz project.