期末了,学校要求每个人都要做一个后端管理系统。于是我屁颠屁颠的把之前项目关掉跑去做完了后台管理系统。结果,就在刚刚,打开之前写的代码就发现出现了这个问题……
TypeError: Cannot read property 'cssSourceMap' of undefined
at Object.<anonymous> (E:\GithubRepo\ArtMuseumY\Front-endImplementation\build\vue-loader.conf.js:
7:16)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\GithubRepo\ArtMuseumY\Front-endImplementation\build\webpack.base.conf.j
s:5:25)
at Module._compile (module.js:652:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! artmuseum@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf
.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the artmuseum@1.0.0 dev 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\honey\AppData\Roaming\npm-cache\_logs\2018-12-19T06_27_03_449Z-debug.log
之前在写后台管理系统的时候也出现过这种情况,后来重新又写了一遍就没问题了。好奇怪啊……我好像没对他干什么啊……
有哪位大佬知道这是怎么回事嘛?谢谢~
要把你webpack配置贴出来才行