问题描述vscode里编译mpvue项目无法运行,总是报错项目地址:https://github.com/9618211/Fr...问题出现的环境背景及自己尝试过哪些方法npm run dev报错尝试了各种方法仍无用,希望高手解此BUG已经尝试了试了网上各种方法CSDN、GitHub、MDN、StackOverflow等各处,仍然未解决npm i -g --save-dev --force webpack-mpvue-vendor-plugin试了网上各种方法,包括删除node_modules、package-lock.json和重建build文件夹,以及使用各种参数安装webpack-mpvue-vendor-plugin包和cjs-loader包、清缓存等方法,依然报错:相关代码// 请把代码文本粘贴到下方(请勿用图片代替代码)npm run devmergemoney@1.0.0 dev D:USER DATARetailnode build/dev-server.jsinternal/modules/cjs/loader.js:583throw err;
^Error: Cannot find module 'webpack-mpvue-vendor-plugin'at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)at Function.Module._load (internal/modules/cjs/loader.js:507:25)at Module.require (internal/modules/cjs/loader.js:637:17)at require (internal/modules/cjs/helpers.js:22:18)at Object.<anonymous> (D:\USER DATA\Retail\build\webpack.dev.conf.js:8:25)at Module._compile (internal/modules/cjs/loader.js:689:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)at Module.load (internal/modules/cjs/loader.js:599:32)at tryModuleLoad (internal/modules/cjs/loader.js:538:12)at Function.Module._load (internal/modules/cjs/loader.js:530:3)at Module.require (internal/modules/cjs/loader.js:637:17)at require (internal/modules/cjs/helpers.js:22:18)at Object.<anonymous> (D:\USER DATA\Retail\build\dev-server.js:15:21)at Module._compile (internal/modules/cjs/loader.js:689:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)at Module.load (internal/modules/cjs/loader.js:599:32)npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! mergemoney@1.0.0 dev: node build/dev-server.jsnpm ERR! Exit status 1npm ERR!npm ERR! Failed at the mergemoney@1.0.0 dev script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.你期待的结果是什么?实际看到的错误信息又是什么?希望高手解此BUG
添加回答
举报
0/150
提交
取消