简体   繁体   English

模块构建失败(来自 ./node_modules/eslint-loader/index.js):错误:找不到模块“eslint/lib/formatters/stylish”

[英]Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module 'eslint/lib/formatters/stylish'

npm run serve was working fine, suddenly it started giving the same error. npm run serve 工作正常,突然开始出现相同的错误。 I am not able to understand the root cause of it and why it isn't working.我无法理解它的根本原因以及它为什么不起作用。 Can anyone suggest how to resolve this issue?谁能建议如何解决这个问题?

"devDependencies": {
    "@vue/cli-plugin-babel": "^4.2.0",
    "@vue/cli-plugin-eslint": "^4.2.0",
    "@vue/cli-plugin-router": "^4.2.0",
    "@vue/cli-plugin-vuex": "^4.2.0",
    "@vue/cli-service": "^4.2.0",
    "@vue/eslint-config-prettier": "^6.0.0",
    "babel-eslint": "^10.0.3",
    "eslint": "^5.16.0",
    "eslint-plugin-prettier": "^3.1.1",
    "eslint-plugin-vue": "^6.1.2",
    "prettier": "^1.19.1",
    "sass": "^1.19.0",
    "sass-loader": "^8.0.0",
    "vue-cli-plugin-vuetify": "^2.0.5",
    "vue-template-compiler": "^2.6.11",
    "vuetify-loader": "^1.3.0"
  }

To resolve this problem, it is enough to remove plugins of eslint.要解决这个问题,去掉eslint的插件就够了。 Therefore, you must remove below line, and again run your project.因此,您必须删除下面的行,然后再次运行您的项目。

"@vue/cli-plugin-eslint": "^4.2.0"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 vuejs/eslint-plugin-vue 模块构建失败(来自./node_modules/eslint-loader/dist/cjs.js):错误:找不到模块'eslint' - vuejs/eslint-plugin-vue Module build failed (from ./node_modules/eslint-loader/dist/cjs.js): Error: Cannot find module 'eslint' 错误:模块构建失败(来自 ./node_modules/babel-loader/lib/index.js):语法错误: - Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: 模块构建失败(来自 ./node_modules/babel-loader/lib/index.js)Vue Js - Module build failed (from ./node_modules/babel-loader/lib/index.js) Vue Js 如何修复“模块构建失败(来自./node_modules/postcss-loader/src/index.js)” - How to fix “Module build failed (from ./node_modules/postcss-loader/src/index.js)” 模块构建失败(来自./node_modules/vue-loader/dist/index.js):TypeError:无法读取 Object.loader 未定义的属性“样式” - Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot read property 'styles' of undefined at Object.loader Vue 模块构建失败(来自 ./node_modules/vue-loader/lib/loaders/templateLoader.js) - Vue module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js) 来自 vue 的 eslint 错误错误:找不到模块“eslint/lib/ast-utils” - eslint error from vue Error: Cannot find module 'eslint/lib/ast-utils' 运行 npm serve 时获取错误消息模块构建失败(来自 ./node_modules/sass-loader/dist/cjs.js) - Getting error message Module build failed (from ./node_modules/sass-loader/dist/cjs.js) when running npm serve ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/table.vue 中的错误 - ERROR in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/table.vue ESLint linting node_modules - ESLint linting node_modules
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM