mattelen / vue3-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
47 stars 12 forks source link

use with vite #12

Closed LittleTom closed 1 year ago

LittleTom commented 2 years ago

How to

MaximSedov commented 2 years ago

Hi! When using my own components, I get a warning:

[Vue warn]: Failed to resolve component
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

Using composition api How can it be solved?

Soundkage commented 2 years ago

Hi @MaximSedov, I know this is few months old now, are you still having this issue? I believe this has to with Vite not understanding what the components are. Are your components in a separate component library that you are attempting to link to your project? I was seeing this when attempting to add our lib as a linked dependency. Could you please post your vite.config.js and package.json?

henrikruscon commented 1 year ago

This doesn't work with SSR

LittleTom commented 1 year ago

This doesn't work with SSR

My project can work with ssr. Maybe you can show more detail.

henrikruscon commented 1 year ago

This doesn't work with SSR

My project can work with ssr. Maybe you can show more detail.

SSR fails on Could not load vue/dist/vue.esm-bundler.js/server-renderer using the above method