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.

eslint extension keep crashing in a project created by vue-cli 3

See original GitHub issue

eslint extension keep crashing in a project created by vue-cli 3, while yarn run lint works well.

download this repository, open in vscode, install dependences (yarn), reload vscode, go to src/main.js, then eslint extension will crash immediately

step to reproduce

  1. create a project with vue-cli 3, Check these configurations: CSS Pre-processors , Sass/SCSS (with dart-sass), ESLint + Airbnb config

  2. go to src/main.js, change import App from './App.vue;' to import App from '@/App.vue'; (webpack alias), or import a nonexistent file, like import './somefile', eslint extension will crash immediately

  3. no this problem when using node-sass instead of dart-sass

versions

vscode-eslint: 1.8.0

vscode: 1.31.1

eslint: 5.14.1

node: v8.11.3

error info:

...

[Info  - 11:49:42 AM] ESLint library loaded from: /Users/project-path/node_modules/eslint/lib/api.js
dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /Users/project-path/node_modules/fibers/bin/darwin-x64-64/fibers.node
  Expected in: flat namespace

dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /Users/project-path/node_modules/fibers/bin/darwin-x64-64/fibers.node
  Expected in: flat namespace

[Info  - 11:49:46 AM] Connection to server got closed. Server will restart.

...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
zliycommented, Feb 27, 2019

@wouterkroes run which node in the terminal, you will get a path to the node executable in your system. ps: eslint.runtime setting is for vscode

same issue #543

1reaction
dbaeumercommented, Mar 28, 2019

IMO

{
    'eslint.runtime": "node"
}

should do the trick.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint extension keep crashing in a project created by vue-cli 3
This is caused by a native node module that you are using. In this case you need to tell ESLint to use the...
Read more >
Vue cli 3 hot reload suddenly not working in browsers
I have a Vue project generated by the Vue cli 3 and my hot reloading suddenly stopped working in my browsers. Changes made...
Read more >
ESLint with Prettier and Vue in VS Code - YouTube
In this video I show how to setup ESLint and Prettier in your VueJS applications and how to get them working properly inside...
Read more >
How to Setup Vue.js with VS Code and Fix Formatting and ES ...
When you create a Vue.js project with the Vue CLI or UI and select Prettier - you'll have a bunch of ES Lint...
Read more >
Getting started with Vue - Learn web development | MDN
In this article we'll look at a little bit of Vue background, learn how to install it and create a new project, study...
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