-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
Extension not working: Cannot find module 'acorn' #858
Comments
I'm also facing similar issue. Any plugin in {
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"plugins": [
"prettier",
"react",
"jest"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect"
}
},
"rules": {
"react/destructuring-assignment": [2, "always", { "ignoreClassFields": true }],
"react/no-array-index-key": 2,
"react/no-unused-state": 2,
"react/no-unused-prop-types": 2,
"prettier/prettier": "error",
"no-nested-ternary": 2,
"semi": [2, "always"],
"prefer-destructuring": ["error", {"object": true, "array": true}],
"prefer-const": ["error", {
"destructuring": "any"
}],
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["error", { "code": 120 }]
}
} package.json -> "eslint": "^6.0.0",
"eslint-config-prettier": "^5.0.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-jest": "^22.7.1",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.13.0",
"prettier": "^1.18.2", |
i donwgraded eslint to ^4.0.0 until a fix |
Works for me as well:
|
Try to remove everything from |
i dont have any prettier related stuff in settings.json this is my workspace settings.json file { |
What I did was to remove any reference to esLint on
and it worked fine |
Duplicate of #870 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Extension is not working currently and outputs the following error
Cannot find module 'acorn'
.Reinstalling didn't help.
It helped when I manually installed
acorn
package in the project's folder even though my project doesn't depend on it.The text was updated successfully, but these errors were encountered: