[英]Error when compiling vue js front end in laravel
我正在尝试运行这个应用程序
https://github.com/saeedvaziry/laravel-vue-polling-app.git
但是当我运行命令时
npm run watch
正如在 README.md 文件中一样,我收到以下错误
ERROR in ./resources/js/app.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Package exports for 'C:\Users\user\Desktop\laravel-vue-polling-app\node_modules\@babel\helper-compilation-targets' do not define a '.' subpath
at applyExports (internal/modules/cjs/loader.js:485:15)
at resolveExports (internal/modules/cjs/loader.js:508:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:577:20)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:879:27)
at Function.Module._load (internal/modules/cjs/loader.js:785:27)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (C:\Users\user\Desktop\laravel-vue-polling-app\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
...........
是什么引起这个错误,是不是webpack配置无效,我在这里遗漏了什么,请帮助解决
查看 github 上的以下问题尝试删除node_modules
目录并使用重新安装
npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.