保存代码

- 发布:2022-09-27 10:28
- 更新:2023-04-27 11:03
- 阅读:482
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 3.6.4
操作步骤:
预期结果:
不报错
不报错
实际结果:
报错
报错
bug描述:
eslint-vue Cannot find module 'eslint-plugin-nuxt'


h***@163.com (作者)
库安装了
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:prettier/recommended',
'prettier',
'prettier/vue'
],
也配置了

h***@163.com (作者)
[eslint-vue] 10:59:55.218 Error: Failed to load plugin 'nuxt' declared in '........\GIT\fzx.eslintrc.js': Cannot find module 'eslint-plugin-nuxt'
[eslint-vue] 10:59:55.350 Error: Failed to load plugin 'nuxt' declared in '........\GIT\fzx.eslintrc.js': Cannot find module 'eslint-plugin-nuxt'
[eslint-vue] 10:59:55.362 Error: Failed to load plugin 'nuxt' declared in '........\GIT\fzx.eslintrc.js': Cannot find module 'eslint-plugin-nuxt'
[eslint-vue] 10:59:55.363 Require stack:
[eslint-vue] 10:59:55.373 Require stack:
[eslint-vue] 10:59:55.378 Require stack:
[eslint-vue] 10:59:55.383 - D:\Program\HBuilderX\plugins\eslint-js__placeholder.js
[eslint-vue] 10:59:55.401 - D:\Program\HBuilderX\plugins\eslint-js\placeholder.js
[eslint-vue] 10:59:55.408 - D:\Program\HBuilderX\plugins\eslint-js\placeholder.js
[eslint-vue] 10:59:55.412 Referenced from: d:\GIT\fzx.eslintrc.js
[eslint-vue] 10:59:55.416 Referenced from: d:\GIT\fzx.eslintrc.js
[eslint-vue] 10:59:55.420 Referenced from: d:\GIT\fzx.eslintrc.js
[eslint-vue] 10:59:55.424 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
[eslint-vue] 10:59:55.433 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
[eslint-vue] 10:59:55.437 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
[eslint-vue] 10:59:55.442 at Function.resolve (node:internal/modules/cjs/helpers:108:19)
[eslint-vue] 10:59:55.448 at Function.resolve (node:internal/modules/cjs/helpers:108:19)
[eslint-vue] 10:59:55.455 at Function.resolve (node:internal/modules/cjs/helpers:108:19)
[eslint-vue] 10:59:55.460 at Object.resolve (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2325:46)
[eslint-vue] 10:59:55.461 at Object.resolve (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2325:46)
[eslint-vue] 10:59:55.469 at Object.resolve (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2325:46)
[eslint-vue] 10:59:55.473 at ConfigArrayFactory._loadPlugin (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3376:33)
[eslint-vue] 10:59:55.481 at ConfigArrayFactory._loadPlugin (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3376:33)
[eslint-vue] 10:59:55.487 at ConfigArrayFactory._loadPlugin (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3376:33)
[eslint-vue] 10:59:55.491 at ConfigArrayFactory._loadExtendedPluginConfig (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3196:29)
[eslint-vue] 10:59:55.496 at ConfigArrayFactory._loadExtendedPluginConfig (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3196:29)
[eslint-vue] 10:59:55.501 at ConfigArrayFactory._loadExtendedPluginConfig (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3196:29)
[eslint-vue] 10:59:55.502 at ConfigArrayFactory._loadExtends (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3117:29)
[eslint-vue] 10:59:55.507 at ConfigArrayFactory._loadExtends (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3117:29)
[eslint-vue] 10:59:55.512 at ConfigArrayFactory._loadExtends (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3117:29)
[eslint-vue] 10:59:55.518 at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3058:25)
[eslint-vue] 10:59:55.523 at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3058:25)
[eslint-vue] 10:59:55.524 at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3058:25)
[eslint-vue] 10:59:55.528 at _normalizeObjectConfigDataBody.next (<anonymous>)
[eslint-vue] 10:59:55.536 at _normalizeObjectConfigDataBody.next (<anonymous>)
[eslint-vue] 10:59:55.541 at _normalizeObjectConfigDataBody.next (<anonymous>)
[eslint-vue] 10:59:55.547 at ConfigArrayFactory._normalizeObjectConfigData (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3003:20)
[eslint-vue] 10:59:55.552 at ConfigArrayFactory._normalizeObjectConfigData (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3003:20)
[eslint-vue] 10:59:55.557 at ConfigArrayFactory._normalizeObjectConfigData (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3003:20)
[eslint-vue] 10:59:55.562 at _normalizeObjectConfigData.next (<anonymous>)
[eslint-vue] 10:59:55.568 at _normalizeObjectConfigData.next (<anonymous>)
[eslint-vue] 10:59:55.572 at _normalizeObjectConfigData.next (<anonymous>)
[eslint-vue] 11:01:46.066 Error: Failed to load plugin 'nuxt' declared in '........\GIT\fzx.eslintrc.js': Cannot find module 'eslint-plugin-nuxt'
[eslint-vue] 11:01:46.123 Require stack:
[eslint-vue] 11:01:46.152 - D:\Program\HBuilderX\plugins\eslint-js\placeholder__.js
[eslint-vue] 11:01:46.199 Referenced from: d:\GIT\fzx.eslintrc.js
[eslint-vue] 11:01:46.204 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
[eslint-vue] 11:01:46.208 at Function.resolve (node:internal/modules/cjs/helpers:108:19)
[eslint-vue] 11:01:46.214 at Object.resolve (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2325:46)
[eslint-vue] 11:01:46.219 at ConfigArrayFactory._loadPlugin (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3376:33)
[eslint-vue] 11:01:46.224 at ConfigArrayFactory._loadExtendedPluginConfig (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3196:29)
[eslint-vue] 11:01:46.232 at ConfigArrayFactory._loadExtends (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3117:29)
[eslint-vue] 11:01:46.238 at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3058:25)
[eslint-vue] 11:01:46.243 at _normalizeObjectConfigDataBody.next (<anonymous>)
[eslint-vue] 11:01:46.249 at ConfigArrayFactory._normalizeObjectConfigData (D:\Program\HBuilderX\plugins\eslint-js\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:3003:20)
[eslint-vue] 11:01:46.254 at _normalizeObjectConfigData.next (<anonymous>)