vuejs / vue-web-component-wrapper

(Vue 2 only) Wrap a Vue component as a web component / custom element.
1.05k stars 99 forks source link

Router not working with Vue web-component #57

Open claudiolcastro opened 5 years ago

claudiolcastro commented 5 years ago

I have my vue project seted up and working fine, along with vue-router. But when build it to web-component, my <router-link> stop working..

"build-webcomp": "vue-cli-service build --mode staging --dest webcomp/static --target wc --name my-comp ./src/MyEntryComp.vue"

[Vue warn]: Unknown custom element: <router-view> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

karol-f commented 5 years ago

https://github.com/vuejs/vue-web-component-wrapper/issues/16#issuecomment-412682633

documents-design commented 5 years ago

@claudiolcastro see #19 for a sample