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.

strange parsing errors since 4.1.0

See original GitHub issue

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 strange Parsing errors 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, including eslint-plugin-react, but is otherwise quite minimal.

when running npm install, i did note that it output:

npm ERR! peer dep missing: acorn@^6.0.0, required by acorn-jsx@5.0.0

even though espree includes acorn@^6.0.0 in its dependencies. seems like this might be a cause, if it’s using an incompatible version of acorn from somewhere?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
martijnsendencommented, Aug 20, 2019

No. We are awaiting. This is npm’s bug and the npm CLI team has a plan to fix the bug by Summer in 2019.

Any news on this?

4reactions
mysticateacommented, Feb 16, 2019

No.

I don’t think the revert makes sense. This causes by acorn’s breaking change. Currently, the npm’s bug appears when there is a older acorn in another dependency. After reverting, it will appear when there is a newer acorn in another dependency. https://github.com/eslint/eslint/issues/11018#issuecomment-438737502

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feross on Twitter: "This @npmjs bug randomly makes ESLint ...
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 strange Parsing errors on...
Read more >
Using pache poi 4.1.0 giving multiple error - Stack Overflow
I am creating read excel file code and I am using Apache poi 4.1.0 dependency to read the file however it is giving...
Read more >
text file input strange error ( help please)
2012/03/02 13:55:50 - Text file input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : Couldn't parse field ...
Read more >
Brakeman 4.1.0 Released
Happy December! Changes since 4.0.1: Add check for dangerous keys in permit; Add optional check for divide by zero; Remove errors about divide...
Read more >
NEWS for R version 4.2.2 Patched (2022-12-14 r83470)
an error in R 4.1.0. BUG FIXES: • The code mitigating stack overflow with PCRE regexps on very long strings is enabled for...
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