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.

'loc' of null error when using babel-eslint as a custom parser

See original GitHub issue
  • Node Version: 8.9.1
  • eslint Version: 4.10.0
  • vue-eslint-parser Version: 2.0.1-beta.2
  • babel-eslint Version: 8.0.2

This is directly related to the issue I created here https://github.com/vuejs/eslint-plugin-vue/issues/189.

I have discovered that the above issue is not resident in eslint-plugin-vue and that the issue likely lies with the interactions between babel-eslint and vue-eslint-parser.

As described in https://github.com/vuejs/eslint-plugin-vue/issues/189 the combination of vue-eslint-parser and babel-eslint produces a error when running the linter.

Example

screen shot 2017-11-09 at 15 18 42

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
mysticateacommented, Nov 22, 2017

Yes. This happens when a code is using stage 0-3 syntaxes or type annotations. I’m working on this, but I need more time.

The cause is that vue-eslint-parser does not get the monkey patching of babel-eslint. The monkey patching affects to ESLint core, but does not to this parser. I’m working to remove the monkey patching on the new feature of ESLint core.

1reaction
mysticateacommented, Dec 25, 2017

eslint@4.14.0 has been released. It includes the enhancement and I removed the monkeypatch from babel-eslint. I’ll advance to fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'loc' of null error when using babel-eslint as a custom parser #21
I have discovered that the above issue is not resident in eslint-plugin-vue and that the issue likely lies with the interactions between babel- ......
Read more >
Property "parser" is the wrong type (expected string/null but ...
I'm not sure why I'm receiving this error. Any ideas why this is happening? Any help is appreciated. Thanks in advance :) javascript...
Read more >
@babel/eslint-parser | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
eslint/eslint - Gitter
Whenever i run "firebase deploy --only functions", I keep getting this error === Deploying to 'revents-231916'... i deploying functions. Running command: npm -- ......
Read more >
Top 5 babel-eslint Code Examples - Snyk
Learn more about how to use babel-eslint, based on babel-eslint code examples created from the most popular ways it is used in public...
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