我是 Vue.js 的新手,在创建我的项目时遇到了这个错误。这是我做的步骤:
npm install @vue/cli
vue create app-frontend
后文件夹如下所示:- Project
-- api-backend
-- app-frontend
cd app-frontend
和npm run serve
Once here, accessing localhost:8080 给我一个空白页面和浏览器控制台上的这个错误:
Uncaught TypeError: Cannot read properties of undefined (reading 'e')
at eval (stripAnsi.js:18:1)
at ./node_modules/webpack-dev-server/client/utils/stripAnsi.js (chunk-vendors.js:325:1)
at __webpack_require__ (app.js:255:33)
at fn (app.js:488:21)
at eval (webpack-internal:///./node_modules/webpack-dev-server/client/index.js?protocol=ws&hostname=192.168.1.61&port=8080&pathname=%2Fws&logging=none&progress=true&overlay=%7B%22errors%22%3Atrue%2C%22warnings%22%3Afalse%7D&reconnect=10&hot=true&live-reload=true:7:77)
at ./node_modules/webpack-dev-server/client/index.js?protocol=ws&hostname=192.168.1.61&port=8080&pathname=%2Fws&logging=none&progress=true&overlay=%7B%22errors%22%3Atrue%2C%22warnings%22%3Afalse%7D&reconnect=10&hot=true&live-reload=true (chunk-vendors.js:172:1)
at __webpack_require__ (app.js:255:33)
at app.js:1374:83
at __webpack_require__.O (app.js:301:23)
at app.js:1377:53
我该如何解决这个问题才能开始我的项目?我做错了什么吗?这是我第一次得到这个错误,在其他目录上创建了其他项目并且没有错误,所以我不知道发生了什么。
可能是你忘记安装了:
cd app-frontend
npm i