Closed yoonasy closed 3 years ago
I'm almost concerned you're just asking a Vite question here... but assuming you're trying to use Vue 2 components in Vite:
It should be possible if you're importing pre-built components (non-SFC) eg. from a component library.
SFCs in your Vite codebase won't work because Vite compiles them to Vue 3.
I'm not too familiar with how Vite works, but if it strictly uses rollup to build SFCs, maybe you can add the older rollup-plugin-vue plugin.
in vite
Component
moduleComponent
The component path needs to be add extension changed to
import C1 from './inner/C1.vue'
It is currently reporting a path not found