总报找不到stylus 属性什么情况? stylus和stylus-loader都下载了 少了什么东西吗

来源:2-1 Vue-cli 3.0 介绍

taojiming

2020-04-30

ERROR TypeError: Cannot read property ‘stylus’ of undefined
TypeError: Cannot read property ‘stylus’ of undefined
at module.exports (C:\Users\pc\Desktop\mk_elm\vue-sell-cube\node_modules\vue-cli-plugin-cube-ui\index.js:6:52)
at C:\Users\pc\Desktop\mk_elm\vue-sell-cube\node_modules@vue\cli-service\lib\Service.js:93:7
at Array.forEach ()
at Service.init (C:\Users\pc\Desktop\mk_elm\vue-sell-cube\node_modules@vue\cli-service\lib\Service.js:91:18)
at Service.run (C:\Users\pc\Desktop\mk_elm\vue-sell-cube\node_modules@vue\cli-service\lib\Service.js:230:10)
at Object. (C:\Users\pc\Desktop\mk_elm\vue-sell-cube\node_modules@vue\cli-service\bin\vue-cli-service.js:36:9)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-sell-cube@0.1.0 serve: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-sell-cube@0.1.0 serve 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! C:\Users\pc\AppData\Roaming\npm-cache_logs\2020-04-30T10_21_56_084Z-debug.log

写回答

1回答

ustbhuangyi

2020-05-02

你把你的代码放到 GitHub 上,我抽空帮你看下

0
2
ustbhuangyi
回复
taojiming
那好吧
2020-05-02
共2条回复

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程