The .js library file have following import statement:
import JU, { defineComponent as Ge } from "vue";
Due to this I am getting below error:
SyntaxError: The requested module '/node_modules/.vite/deps/vue.js?v=44b28b6f' does not provide an export named 'default'
I have followed documentation correctly while creating a library. I am not sure how can I fix the import statement that is auto generated
I have followed below steps:https://ridaehamdani.medium.com/getting-started-creating-a-vue-3-components-library-with-vite-%EF%B8%8F-a670618dab54
I am getting above error on running host application where the library is used.