-
Notifications
You must be signed in to change notification settings - Fork 343
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
After updating to 6.x all JS files return JS_SYNTAX_ERROR on web-ext lint #2245
Comments
@cadeyrn I need to dig a bit more to identify the "why" part, but it looks that the Because of that, To double-check that it is really the For your extension, it may be reasonable to migrate away from Even if a workaround exist for your particular case, I'm not closing this issue yet and I'll try to come back to investigate it a bit more. This issue looks pretty annoying and I'm pretty sure that there would be other combinations of dev dependencies that may also lead to this unexpected dependency resolution issue and then trigger these unexpected parsing error (which are going to be quite confusing, also hard to investigate given that the error doesn't provide any stack trace to help detecting where they are being triggered from). [1]: well, actually the |
This bug is still actual. Check my pipeline log: https://github.com/translate-tools/linguist/runs/4347669128?check_suite_focus=true I update packages and got this error. Builds run fine in browser. Please, fix it. At this time i forced to disable testing step with this tool: translate-tools/linguist@b4447f2 |
@vitonsky this is more recently a bug with npm caused by using eslint 7 and web-ext 6.6.0/addons-linter 4 in a project. See AprilSylph/Palettes-for-Tumblr#80 (comment) for the full details, it's very interesting. As I understand it, the current solutions are:
|
and update web-ext (last one to update)
This issue has been fixed on the addons-linter side (mozilla/addons-linter#4078) and that fix has been introduced in web-ext by #2374. This should now be fixed in the web-ext v6.7.0 release. |
Is this a feature request or a bug?
Bug. Similar to #1976.
What is the current behavior?
After running
web-ext lint
the validation doesn't work. Instead I get the following message for every JS file:JS_SYNTAX_ERROR
JavaScript syntax error (Parsing as script error: Invalid ecmaVersion. at line: undefined and column: undefined)
There is a JavaScript syntax error in your code, which might be related to some experimental JavaScript features that aren't an official part of the language specification and therefore not supported yet. The validation cannot continue on this file.
What is the expected or desired behavior?
A Successful validation.
This happens every time with web-ext 6.0.0 and with web-ext 6.1.0 but not with web-ext 5.1.0 and not with web-ext 5.5.0. I tried to validate https://github.com/cadeyrn/newtaboverride.
Version information (for bug reports)
v15.6.0
7.4.0
The text was updated successfully, but these errors were encountered: