-
Notifications
You must be signed in to change notification settings - Fork 58
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
编译后预览报错 #9
Comments
我的一切正常 改改后 现在用在项目上了 还算OK |
|
不使用18n组件 |
确实是18n组件的问题,在18n插件中添加legacy:false即可。 |
跟i18n版本有一定关系,package.json中 "dependencies": {
"vue-i18n": "^9.1.10",
}, master中仅存在yarn.lock,而无其他lock文件,所以在使用除yarn以外的工具(例如npm,pnpm等)安装依赖时,会安装9.x.x版本的最新版i18n,导致preview报错,build后白屏等问题
解决办法2:
|
SyntaxError: 19 (at index.10dbab0b.js:39:542)
at createCompileError (index.10dbab0b.js:39:542)
at createI18nError (index.10dbab0b.js:53:936)
at useI18n (index.10dbab0b.js:53:22093)
at setup (index.c90c7eca.js:1:14601)
at callWithErrorHandling (index.10dbab0b.js:4:789)
at setupStatefulComponent (index.10dbab0b.js:4:51147)
at setupComponent (index.10dbab0b.js:4:50800)
at Ve (index.10dbab0b.js:4:35166)
at oe (index.10dbab0b.js:4:35012)
at w (index.10dbab0b.js:4:31254)
The text was updated successfully, but these errors were encountered: