Describe the bug
When I tried to build pro-antdv project with electron-builder, it fails with constantViolations Error.
But it works with yarn electron:serve command
To Reproduceyarn electron:build
Screenshots
error in ./src/views/user/RegisterResult.vue?vue&type=script&lang=js&
Syntax Error: TypeError: /.../src/views/user/RegisterResult.vue: Cannot read property 'constantViolations' of undefined
@ ./src/views/user/RegisterResult.vue?vue&type=script&lang=js& 1:0-343 1:359-362 1:364-704 1:364-704
@ ./src/views/user/RegisterResult.vue
@ ./src/config/router.config.js
@ ./src/router/index.js
@ ./src/main.js
@ multi ./src/main.js
ERROR Vue CLI build failed. Please resolve any issues with your build and try again.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Environment (please complete the following information):Output from vue info
Describe the bug When I tried to build
pro-antdv
project withelectron-builder
, it fails withconstantViolations
Error. But it works withyarn electron:serve
commandTo Reproduce
yarn electron:build
Screenshots
Environment (please complete the following information): Output from
vue info
Additional Context https://github.com/vueComponent/ant-design-vue-pro