-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
strange parsing errors since 4.1.0 #393
Comments
Reproduction of error: require('espree').parse("<div a='b' />", { ecmaFeatures: { jsx: true } }) In |
cc @mysticatea |
Hi, thanks for the report. However, I can't seem to reproduce this issue (using Node v11.0.0):
What versions of |
digging into node_modules after removing and re-installing,
|
Well when I tried in an empty directory and did what you just did, I no longer saw the error. So I suspect that the issue here is something to do with the specific structure of
Like .@quarterto I also see Edit: |
I think this is a result of the same npm bug that was discussed in eslint/eslint#10022. |
To confirm the npm dependency issue, we ran into this problem and discovered that we had an unused dev dependency with |
Looks like a bug in npm's installation logic. I could reproduce it with
Looks |
As a workaround I've found that explicitly adding
to my |
…markdown` See eslint/js#393 (comment) for extra eslint deps
I also encountered this problem, any updated status on this? |
No. We are awaiting. This is |
Still, since some change in eslint’s dep tree triggered it, surely there’s something eslint could do to reverse it in the meantime? |
(like, switch to require espree |
No.
|
The ESLint upgrade runs afoul of a bad NPM bug with dependency resolution, which is in turn triggered by some interesting linking behavior by Acorn and its plugins. See more at: - eslint/eslint#11018 - eslint/js#393 So, all new lockfile. Hopefully no other issues result from this. Also updates Circle to use a clean cache.
The ESLint upgrade runs afoul of a bad NPM bug with dependency resolution, which is in turn triggered by some interesting linking behavior by Acorn and its plugins. See more at: - eslint/eslint#11018 - eslint/js#393 So, all new lockfile. Hopefully no other issues result from this. Also updates Circle to use a clean cache.
The ESLint upgrade runs afoul of a bad NPM bug with dependency resolution, which is in turn triggered by some interesting linking behavior by Acorn and its plugins. See more at: - eslint/eslint#11018 - eslint/js#393 So, all new lockfile. Hopefully no other issues result from this. Also updates Circle to use a clean cache.
Any news on this? |
eslint depends on
espree@^4.0.0
, which pulls in 4.1.0 on a fresh install. since installing this version, we've been getting strangeParsing error
s on perfectly normal JSX syntax, e.g. in this build https://circleci.com/gh/Financial-Times/x-dash/1197. the referenced lines aren't anything weird. our.eslintrc.js
includes a few plugins, includingeslint-plugin-react
, but is otherwise quite minimal.when running
npm install
, i did note that it output:even though
espree
includesacorn@^6.0.0
in its dependencies. seems like this might be a cause, if it's using an incompatible version of acorn from somewhere?The text was updated successfully, but these errors were encountered: