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

yarn run build 报错 #3826

Closed
lincf1 opened this issue Nov 22, 2022 · 1 comment
Closed

yarn run build 报错 #3826

lincf1 opened this issue Nov 22, 2022 · 1 comment

Comments

@lincf1
Copy link

lincf1 commented Nov 22, 2022

in ./node_modules/vux/src/components/confirm/index.vue?vue&type=template&id=c48d9308&

Syntax Error: Thread Loader (Worker 0)
Cannot read property 'vux.confirm.cancel_text' of undefined
    at String.replace (<anonymous>)


 @ ./node_modules/vux/src/components/confirm/index.vue?vue&type=template&id=c48d9308& 1:0-582 1:0-582
 @ ./node_modules/vux/src/components/confirm/index.vue
 @ ./node_modules/vux/src/plugins/confirm/index.js
 @ ./src/main.js
 @ multi ./src/main.js

运行是没有问题的,但是打包一直报这个错,好久了也不会解决,有没有大佬帮忙看一下啊,谢谢哈

@lincf1
Copy link
Author

lincf1 commented Nov 22, 2022

        "@vue/cli-plugin-babel": "^4.5.0",
        "@vue/cli-plugin-eslint": "^4.5.0",
        "@vue/cli-service": "^4.5.0",
         "vux": "^2.11.1",
        "vux-form": "0.1.8",
        "@vux/loader": "^2.1.1"

问题解决了,把这个( "@vue/cli-plugin-babel": "^4.5.0",
"@vue/cli-plugin-eslint": "^4.5.0",
"@vue/cli-service": "^4.5.0",)改为( "@vue/cli-plugin-babel": "^3.5.0",
"@vue/cli-plugin-eslint": "^3.5.0",
"@vue/cli-service": "^3.5.0",)就可以了。。。。相当难受啊,卡了半天的时间

@lincf1 lincf1 closed this as completed Nov 22, 2022
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

1 participant