When you open the vue project, `Cannot read property 'cssSourceMap' of undefined appears.

at the end of the term, the school requires everyone to do a back-end management system. So I shut down the previous project and finished the background management system. As a result, just before I opened it, the code I wrote found this problem.

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       

this has happened before when writing the background management system, and then it will be no problem if I write it again. How strange. I don"t seem to have done anything to him.

does any boss know what"s going on? Thank you ~

Feb.24,2022

it's too late. I don't know if you need it. The reason for the error is to reconfigure assetsPublicPath in the requested inde.js


to post your webpack configuration

Menu