vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 429 forks source link

vue-class-component and vue plugin in production issue #526

Closed rcovell closed 3 years ago

rcovell commented 3 years ago

Reference issue: https://github.com/vuejs/vue-class-component/issues/293

Facing the opposite issue of above. In fact, we were having that issue, and the solution was spot on (via a plugin we are consuming vue-class-components created in storybook ). Everything works as expected when running in development mode. When we compile it for production nothing written with vue-class-components works. Verified this by converting a simple component in the plugin to a vanilla vue component. Saw success, reverted the changes to be a vue-class-component, and it goes away.

Is there anything special we need to do to get vue-class-component from a plugin working in production.

rcovell commented 3 years ago

After digging around the issue was solved for us by the below links: https://github.com/vuejs/vue-cli/issues/4065 https://github.com/vuejs/vue-class-component/issues/337

In addition had to follow issue #293 as we did for development.