[Vuejs]-Webpack generated library has problem being imported by project where useBuiltIns is set to 'usage'

0👍

I’ve found the answer in the Vue.js forum: https://forum.vuejs.org/t/export-default-imported-as-components-was-not-found-in-mylib/63905

The problem was that I was adding the dependency with a local path, namely:

$ npm install ../component

And in this case, npm is creating a symlink in node_modules. It seems that some babel plugin doesn’t really like symlinks.

After I’ve changed to use git:

$ npm install git+file://localhost/path/to/component

Everything works fine.

Leave a comment