You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone! Im building a library that is used by another project, and Im using vue-cli to generate the dist files: vue-cli-service build --target lib --name libName entry.js
Everything is fine, except that when I try to use the library in the other project, I get Super expression must either be null or a function
Debugging I found that the "missing super expression" is Vue from extends Vue, and I think it has something to do with what the documentation on build targets from vue-cli says:
Note on Vue Dependency
In lib mode, Vue is externalized. This means the bundle will not bundle Vue even if your code imports Vue
So I dont know how to handle this, how to make it use the Vue from my project and not the Vue from the library project...
If instead of using the class syntax I use the standard syntax, I dont get this error.
Has anyone seen this case? Looks like its not a weird case where we want to export components
The text was updated successfully, but these errors were encountered:
Sorry for leaving this open. I kept looking into this and saw that it was more of a vue-cli issue and posted an issue there. Anyone getting this error might find it useful: vuejs/vue-cli#2675
Hi everyone! Im building a library that is used by another project, and Im using vue-cli to generate the dist files:
vue-cli-service build --target lib --name libName entry.js
Everything is fine, except that when I try to use the library in the other project, I get
Super expression must either be null or a function
Debugging I found that the "missing super expression" is Vue from
extends Vue
, and I think it has something to do with what the documentation on build targets from vue-cli says:So I dont know how to handle this, how to make it use the Vue from my project and not the Vue from the library project...
If instead of using the class syntax I use the standard syntax, I dont get this error.
Has anyone seen this case? Looks like its not a weird case where we want to export components
The text was updated successfully, but these errors were encountered: