airyland/vux

yarn run build 报错

lincf1 opened this issue · 1 comments

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

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

        "@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",)就可以了。。。。相当难受啊,卡了半天的时间