I'm trying to get unplugin-vue-components working in my project, but I'm getting problems with picomatch (a dependency of @rollup/pluginutils@5.1.0, which is a dependency of unplugin-vue-components) where it's trying to access process, which is clearly incompatible with Vite & Inertia SSR, which use import.meta. I really want to be able to use this package successfully in my project (because it appears to pair so nicely with unplugin-vue-markdown) but I'm not sure how to resolve an issue with a nested dependency. I'm also seeing that it is looking for extname at build time as well, which seems to be failing...
Describe the bug
I'm trying to get
unplugin-vue-components
working in my project, but I'm getting problems withpicomatch
(a dependency of@rollup/pluginutils@5.1.0
, which is a dependency ofunplugin-vue-components
) where it's trying to accessprocess
, which is clearly incompatible with Vite & Inertia SSR, which useimport.meta
. I really want to be able to use this package successfully in my project (because it appears to pair so nicely withunplugin-vue-markdown
) but I'm not sure how to resolve an issue with a nested dependency. I'm also seeing that it is looking forextname
at build time as well, which seems to be failing...Chrome DevTools console looks like...
Vite Build error looks like...
Reproduction
https://gist.github.com/cjholowatyj/2b6a524f9777209f5872708028d92111
System Info
Used Package Manager
pnpm
Validations