-
Notifications
You must be signed in to change notification settings - Fork 64
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
Using this extension with create-nuxt-app results in 'definition for rule ... not found' errors #134
Comments
Update: it looks like I had to install |
Facing the same problem
|
MEMO: |
( Google Translate ) The cause is unknown, but once I specified v3.0.0 and reinstalled it, and then updated to v5.0.0, the error no longer occurred (I'm not sure if it's working properly).
{
"root": true,
"env": {
"browser": true,
"node": true
},
"extends": ["@nuxtjs/eslint-config-typescript", "prettier", "prettier/vue"],
"rules": {}
}
|
I had the same issue, but I managed to get it sorted after a little playing around. Not sure how necessary a couple of the steps were, but it's working fine now :) There should be no need to install I updated eslint to the latest version (I believe it needs to be anything > 7.13.0). My module.exports = {
root: true,
extends: [
'@nuxtjs',
'airbnb-base',
'plugin:nuxt/recommended',
],
plugins: [
'prettier',
],
globals: {
$nuxt: true,
},
// ... settings, rules etc...
}; |
Feel like |
This may also be related to npm/yarn hoisting or vscode cache, I suggest reinstalling dependencies and reload vscode window, if it's still now working, let's add |
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. |
With a vanilla eslint config (below),
As long as
'@nuxtjs/eslint-config-typescript'
is included, VS Code shows a bunch of Vue errors:My
package.json
is:I'm not sure this is the right project, but as it seemed to be the one that impacted the results, I figured I'd start here :) Apologies if I got something basic wrong!
The text was updated successfully, but these errors were encountered: