Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue项目启动报错 #549

Open
SuperMonkeyC opened this issue Jul 12, 2024 · 3 comments
Open

vue项目启动报错 #549

SuperMonkeyC opened this issue Jul 12, 2024 · 3 comments

Comments

@SuperMonkeyC
Copy link

先是
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
Copy link
Author

我本地是node 16

@SuperMonkeyC
Copy link
Author

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

@shenghuang147
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants