I work on a project using Angular v7 and just today encountered this error Uncaught SyntaxError: \8 and \9 are not allowed in strict mode.
at runtime that will not go away
I've been able to trace it back to the angular-essential-select
module (2.0.12) that I use and cannot replace at the moment.
I have not modified my tsconfig.json
or my angular.json
and I definitely not have strict mode enabled.
The problem is that my app compiles properly, but does not work because of this error.
I've tried everything I could think of (from a simple npm ci
to a full clone of my repo on which I have not pushed anything right before it broke) and I'm out of idea. If anyone wants to chime in, it'll be appreciated.
Update:
I tried a repo clone on a new machine: the issue does not translate on my other machine (which is a good point).
My best guess is that a global npm package was updated for whatever reason and is causing this mess or some npm cache shenanigans.
Update #2:
I had checked only on Google Chrome, but Richard Hogg's comment made me check on Firefox: it works fine.
Guess that since both Google Chrome and MS Edge run on the same Chromium core, it could be an issue with a Chromium update... Back to figuring this thing out!