team-innovation / vue-sfc-rollup

Quickly generate redistributable Vue components with Rollup
MIT License
696 stars 91 forks source link

Component not working weel when importing in another project #117

Closed jdflaugergues closed 2 years ago

jdflaugergues commented 2 years ago

Hi,

I'm trying to use vue-sfc-rollup to build my own vuejs 3 library component with typescript but I've some issues. I have created a simple component with an input and a validation (with vee-validate), I build my project library and imported it in my main Vuejs web app project, but it doesn't work well.

Indeed, events with watchEffect are not emmited to parent component and validation from vee-validate not working. If I use exactly the same component in my own project it works, this is why I think there is a issue during the building project.

I have tried the composant with and without script setup but I have got the same error. Here is the source of my project : https://github.com/jdflaugergues/vue-lib

Package.json Rollup Config The component

Thanks for your help.

mgdodge commented 2 years ago

The decision has been made to deprecate vue-sfc-rollup in favor of better tooling in the Vue ecosyste, specifically the vite "library build" configuration. It is an excellent project, which is capable of everything vue-sfc-rollup strived to accomplish, and more.