linlinjava / litemall

又一个小商城。litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端 + Vue用户移动端
MIT License
19.29k stars 7.22k forks source link

vue项目启动报错 #549

Open SuperMonkeyC opened 4 months ago

SuperMonkeyC commented 4 months ago

先是 Failed to resolve loader: cache-loader 安装了后继续 Failed to resolve loader:babel-loader 然后: Syntax Error: TypeError: this.getOptions is not a function

最后改成了这样,运行起来了,但是还是有报错 "dependencies": { "@chenfengyuan/vue-countdown": "^1.1.2", "axios": ">=0.21.1", "dayjs": "^1.7.7", "js-cookie": "2.2.0", "lodash": "^4.17.21", "regenerator-runtime": "^0.14.1", "vant": "^2.13.2", "vue": "^2.5.17", "vue-router": "^3.0.1", "vuelidate": "^0.7.4", "vuex": "^3.4.0" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.12.0", "@vue/cli-plugin-eslint": "^3.12.0", "@vue/cli-service": "^3.12.0", "@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-typescript": "9.1.0", "babel-loader": "^8.0.6", "babel-plugin-import": "^1.13.3", "babel-plugin-lodash": "^3.3.4", "cache-loader": "^4.1.0", "core-js": "^2.6.5", "css-loader": "^4.3.0", "node-sass": "^4.0.0", "postcss-loader": "^4.0.4", "sass-loader": "7.1.0", "url-loader": "^4.1.1", "vue-loader": "^15.11.1", "vue-style-loader": "^4.1.3", "vue-template-compiler": "^2.5.17" } 希望作者可以清理依赖后重新运行看看,是不是 有一些用了本地的依赖而没在项目里显示出来?我重新找了个同事也是和我一样报错。 如果有依赖更新麻烦@下我,感谢。

SuperMonkeyC commented 4 months ago

我本地是node 16

SuperMonkeyC commented 4 months ago

换成node14 能跑起来了,不过还是有报错。 image

shenghuang147 commented 2 months ago

参考 What is the "Use the latest vue-eslint-parser" error?