-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
SyntaxError: invalid regexp group #172
Comments
I'm experiencing the same error after updating ow to version 0.16.0 in my project. 0.16.0 and 0.17.0 work fine in Google Chrome, but not in Firefox (error:"SyntaxError: invalid regexp group") nor in Edge (error: "Expected identifier, string or number"). 0.15.1 is the last version running without syntax errors in my project with all browsers. Regretfully I can't tell exactly where the error occurs in ow, as I use a ow in a webpack'ed script in my project. Target of my project is es2017. Cheers, |
The only place we use a regex not supported by Firefox is: ow/source/utils/infer-label.ts Line 7 in b2285d0
But that file is excluded for browser use: Lines 80 to 82 in b2285d0
Which makes it sound like Vue CLI doesn't respect the |
Thanks for the reply! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
That would be surprising as Webpack popularized the |
@neptunelabs, did you ever file this elsewhere? Also experiencing this issue with Vue CLI 4.3.1 (2020-04-07). Would gladly contribute a fix. The pragmatic side of me says changing this one line in this one package is the easiest. Replacing ow in my repos is next easiest. Getting Babel or Vue to change is the least likely to resolve in the near-term. |
@nullfame: I didn't file this anywhere else except here. |
Fixes sindresorhus#191 Fixes sindresorhus#189 Fixes sindresorhus#182 Fixes sindresorhus#172 Fixes sindresorhus#24 Fixes sindresorhus#190 Fixes $178
Fixes sindresorhus#191 Fixes sindresorhus#189 Fixes sindresorhus#182 Fixes sindresorhus#172 Fixes sindresorhus#24 Fixes sindresorhus#190 Fixes $178
This may be completely unrelated to your project. I have tried to include your library into my project which is a vue.js app built with vue cli and using typscript. After importing your library when I launch my project I just get the following error in my console.
SyntaxError: invalid regexp group chunk-vendors.js:1:7
If I remove the usage of the ow library it goes away. Any help would be appreciated. I have never encountered this sort of error before.
Thank you,
Navid
The text was updated successfully, but these errors were encountered: