question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid Unicode escape sequence from _buildManifest.js

See original GitHub issue

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.

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:

  1. npx blitz new testapp
  2. cd testapp
  3. yarn blitz start
  4. Immediately click the localhost:3000 link as soon as it appears from the Next.js dev server
  5. 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:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
amirho1commented, Dec 30, 2021

@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

1reaction
ShikChencommented, Oct 27, 2020

It’s a blitz project.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found