Demo of an issue when using a built Vue library
/tmp/buggy-vue-lib $ yarn install
/tmp/buggy-vue-lib $ yarn build
Creates dist/buggyvuelib.umd.js
/tmp/buggy-vue-lib $ cd example && yarn install
/tmp/buggy-vue-lib/example $ yarn serve
or
/tmp/buggy-vue-lib/example $ yarn build
The first and sometimes second run will cause an error and fail. The project will compile and run successfully after and running the command again a few times. In case of yarn serve
, the failed build has to be exited with ^C before trying again.