Closed JoshK2 closed 4 years ago
That should be resolved by:
It can be worked around for now by:
In general, it's not a good idea to have babel runtime in bit components.
I added the babel-runtime as dependencies and it's working https://bit.dev/epicmax/epic-spinners/radar-spinner
I exported this component https://bit.dev/joshk/epic-spinners-final-1/radar-spinner from this project https://github.com/epicmaxco/epic-spinners/tree/v1.1.0 and when I use it in a new vue project, I get this error:
After I install babel-runtime everything is working. If I use the radar-spinner from the epic-spinners library I don't get this error.
The problem is that
Object.assign
function is replaced byrequire("babel-runtime/core-js/object/assign")
. So I think is a problem with the webpack config. I use this bundler https://bit.dev/bit/envs/bundlers/vue/~code?version=2.5.1