Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 错误类型错误:无法读取属性';样式资源加载器';未定义的_Node.js_Vue.js_Webpack_Babeljs_Vue Cli - Fatal编程技术网

Node.js 错误类型错误:无法读取属性';样式资源加载器';未定义的

Node.js 错误类型错误:无法读取属性';样式资源加载器';未定义的,node.js,vue.js,webpack,babeljs,vue-cli,Node.js,Vue.js,Webpack,Babeljs,Vue Cli,我有一个Vue 2.6项目,在该项目中,此错误发生在样式组装的某个阶段(如果我理解正确的话)。同时,我既不能构建也不能运行该项目,但所有模块都是通过package.json成功安装的 ... "dependencies": { "-": "0.0.1", "axios": "^0.21.0", "babel-polyfill": "^6.2

我有一个Vue 2.6项目,在该项目中,此错误发生在样式组装的某个阶段(如果我理解正确的话)。同时,我既不能构建也不能运行该项目,但所有模块都是通过package.json成功安装的

...
  "dependencies": {
    "-": "0.0.1",
    "axios": "^0.21.0",
    "babel-polyfill": "^6.26.0",
    "core-js": "^3.8.1",
    "es6-promise": "^4.2.8",
    "moment": "^2.29.1",
    "scroll-lock": "^2.1.4",
    "swiper": "^6.4.1",
    "v-mask": "^2.2.3",
    "v-tooltip": "^2.0.3",
    "vee-validate": "^4.0.4",
    "vue": "^2.6.12",
    "vue-awesome-swiper": "^4.1.1",
    "vue-axios": "^3.2.0",
    "vue-click-outside": "^1.1.0",
    "vue-cool-lightbox": "^2.6.9",
    "vue-gtag": "^1.10.0",
    "vue-recaptcha": "^1.3.0",
    "vue-router": "^3.4.9",
    "vue-select": "^3.10.8",
    "vue-the-mask": "^0.11.1",
    "vue-toasted": "^1.1.28",
    "vue-yandex-maps": "^0.10.9",
    "vue-yandex-metrika": "^1.8.3",
    "vue2-perfect-scrollbar": "^1.5.0",
    "vuejs-datepicker": "^1.6.2",
    "vuelidate": "^0.7.6",
    "vuex": "^3.6.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.9",
    "@vue/cli-plugin-eslint": "~4.5.9",
    "@vue/cli-plugin-router": "~4.5.9",
    "@vue/cli-plugin-vuex": "~4.5.9",
    "@vue/cli-service": "~4.5.9",
    "@vue/eslint-config-prettier": "^6.0.0",
    "babel-eslint": "^10.1.0",
    "css-loader": "^5.0.1",
    "eslint": "^7.15.0",
    "eslint-plugin-prettier": "^3.2.0",
    "eslint-plugin-vue": "^7.2.0",
    "less": "^3.12.2",
    "less-loader": "^7.1.0",
    "prettier": "^2.2.1",
    "style-resources-loader": "^1.4.1",
    "vue-cli-plugin-style-resources-loader": "~0.1.4",
    "vue-svg-loader": "^0.16.0",
    "vue-template-compiler": "^2.6.12"
  }
...
错误

错误类型错误:无法读取未定义的属性“样式资源加载器”

详情如下:

 ERROR  TypeError: Cannot read property 'style-resources-loader' of undefined
TypeError: Cannot read property 'style-resources-loader' of undefined
    at module.exports (/var/www/eskso.wsofter.ru/public_html/front/node_modules/vue-cli-plugin-style-resources-loader/index.js:2:53)
    at /var/www/eskso.wsofter.ru/public_html/front/node_modules/@vue/cli-service/lib/Service.js:78:7
    at Array.forEach (<anonymous>)
    at Service.init (/var/www/eskso.wsofter.ru/public_html/front/node_modules/@vue/cli-service/lib/Service.js:76:18)
    at Service.run (/var/www/eskso.wsofter.ru/public_html/front/node_modules/@vue/cli-service/lib/Service.js:215:10)
    at Object.<anonymous> (/var/www/eskso.wsofter.ru/public_html/front/node_modules/@vue/cli-service/bin/vue-cli-service.js:36:9)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sapphire@0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sapphire@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-12-12T05_45_34_046Z-debug.log
root@bytebrush:/var/www/eskso.wsofter.ru/public_html/front# 

样式资源加载程序
用于自动导入某些资源<代码>vue cli插件风格的资源加载程序只是一个包装器。可能不需要两者兼而有之,这可能是造成问题的原因。尝试删除以下某个
依赖项

  • vue cli插件式资源加载程序
  • 样式资源加载程序
例如:

npm uninstall vue-cli-plugin-style-resources-loader

样式资源加载程序
用于自动导入某些资源<代码>vue cli插件风格的资源加载程序只是一个包装器。可能不需要两者兼而有之,这可能是造成问题的原因。尝试删除以下某个
依赖项

  • vue cli插件式资源加载程序
  • 样式资源加载程序
例如:

npm uninstall vue-cli-plugin-style-resources-loader

如果
npm卸载
一个(或两个)
样式资源加载程序
&
vue cli插件样式资源加载程序
,会发生什么情况?哇,我卸载了vue cli插件样式资源加载程序,它工作正常!谢谢你,伙计!)如果
npm卸载
一个(或两个)
样式资源加载程序
&
vue cli插件样式资源加载程序
,会发生什么情况?哇,我卸载了vue cli插件样式资源加载程序,它工作正常!谢谢你,伙计!)