Tobi0610
import/load vue-component in nuxt app at runtime
Hi, I have a "dynamic-component" which I want to load at runtime like so:
This "dynamic component" is a vue3-component and in the build-rollupOptions I specified vue as "external":
However, when loading the page the import of vue within dynComponent.es.js could not be resolved:
TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
How to solve this problem while still using vue as an external dependency within the dynComponent?
Thank you 🙂
1 replies