简体   繁体   中英

after npm install and npm run dev console throws error, even though project works on another machine

I installed a well working project on my home machine and after compiling fine it throws an error in the console

Uncaught ReferenceError: regeneratorRuntime is not defined
at eval (index.umd.js?e3f3:5)
at eval (index.umd.js?e3f3:5)
at eval (index.umd.js?e3f3:5)
at eval (index.umd.js?e3f3:2)
at Object.eval (index.umd.js?e3f3:1)
at eval (index.umd.js:2523)
at Object../node_modules/vuetify-dialog/dist/index.umd.js (app.js:1611)
at __webpack_require__ (app.js:20)
at eval (app.js?6d40:1)
at Module../resources/js/app.js (app.js:1667)

and here's some lines from app.js if that helps

19. /******/        // Execute the module function
20. /******/        modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21. /******/

The project works fine on another computer. I upgraded nodejs and npm. I'm out of ideas now. I'm using Vuetify.js

我以前遇到过这个,然后我换成了纱线并且它起作用了

尝试删除node_modules文件夹和 package.lock.json,然后再次运行npm i

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM