After upgrading Nuxt in my project using the command npx nuxi upgrade
, I encountered an issue while running eslint .
. The output displayed a warning regarding the TypeScript version:
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=4.3.5 <5.4.0
YOUR TYPESCRIPT VERSION: 5.4.3
Please only submit bug reports when using the officially supported version.
=============
Upon investigating further, I discovered that an older version of Nuxt uses
"@nuxt/eslint-config": "^0.2.0"
for ESLint configuration. You can view its configuration details here.
This configuration relies on @typescript-eslint/eslint-plugin, @typescript-eslint/parser
. Upon checking the package-lock.json file, I found the following information about the "@nuxt/eslint-config"
package:
package-lock.json
"node_modules/@nuxt/eslint-config": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/@nuxt/eslint-config/-/eslint-config-0.2.0.tgz",
"integrity": "sha512-NeJX8TLcnNAjQFiDs3XhP+9CHKK8jaKsP7eUyCSrQdgY7nqWe7VJx64lwzx5FTT4cW3RHMEyH+Y0qzLGYYoa/A==",
"dev": true,
"dependencies": {
"@rushstack/eslint-patch": "^1.3.3",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint-plugin-vue": "^9.17.0",
"typescript": "^5.2.2"
},
"peerDependencies": {
"eslint": "^8.48.0"
}
},
The versions specified in the package are 6.5.0 for @typescript-eslint/eslint-plugin
and @typescript-eslint/parser
. However, I noticed that the latest version is 7.5.0.
It appears that although Nuxt updated TypeScript during the upgrade process, the @nuxt/eslint-config
package was not updated to reflect this change. It seems there is no newer version available at the moment :)