go-admin-team / go-admin-ui

基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统的前端模块
https://www.go-admin.dev
MIT License
1.16k stars 716 forks source link

cnpm run dev报错 #189

Closed yaodongzhi closed 2 years ago

yaodongzhi commented 2 years ago

98% after emitting CopyPlugin

ERROR Failed to compile with 1 error 3:15:14 PM

error in ./node_modules/_vue-particles@1.0.9@vue-particles/src/vue-particles/vue-particles.vue

Syntax Error: TypeError: Cannot read property 'styles' of undefined

@ ./node_modules/_vue-particles@1.0.9@vue-particles/src/vue-particles/index.js 2:0-43 7:39-48 @ ./src/main.js @ multi ./node_modules/_webpack-dev-server@3.11.3@webpack-dev-server/client?http://192.168.0.102:9528&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

sqc157400661 commented 2 years ago

请问你解决了吗

dalefengs commented 2 years ago

98% after emitting CopyPlugin

ERROR Failed to compile with 1 error 21:57:29

error in ./node_modules/_vue-particles@1.0.9@vue-particles/src/vue-particles/vue-particles.vue

Syntax Error: TypeError: Cannot read property 'styles' of undefined

@ ./node_modules/_vue-particles@1.0.9@vue-particles/src/vue-particles/index.js 2:0-43 7:39-48 @ ./src/main.js @ multi ./node_modules/_webpack-dev-server@3.11.3@webpack-dev-server/client?http://172.20.10.6:9527&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js 我也出现这个问题

yaodongzhi commented 2 years ago

找了我们公司的前端大佬给看了看,是版本问题,用yarn装就好了

dalefengs commented 2 years ago

是的,我前天使用 yarn 安装已经可以运行了,cnpm源应该是有点问题的