When Register Component twice with same tage name globally, Then Component not rendered when webpack production build. #12312
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I register componentA globally using Vue.component ( name is 'componentA' );
And create new componentB this way
And this component is registered by
Everything is Ok when build a project in development mode(webpack).
But when build a project as a production mode(webpack), then this component is not rendered.
And If componentA is a made by option api, then everything is ok in development & production mode.
This problem occurs only componentA is composition api.
Is there any way to solve this problem? ( ex. perfect guide of uninstall global component )
I checked more, than it's not about Vue.component
It's error about extends.
and
and use in another component
then that component never rendered.
In this case componentA is a composition api component.
But If componentA is a option api then everything is ok.
And even componentA is a composition api,
If I build using webpack development mode then Everything is ok.
BUt If i build using webpack production mode then Never rendered.
Beta Was this translation helpful? Give feedback.
All reactions