vuetify-nuxt-module icon indicating copy to clipboard operation
vuetify-nuxt-module copied to clipboard

vuetifyStylesPlugin: unable to transform styles when importing with extended nuxt app

Open ar45 opened this issue 11 months ago • 2 comments

I'm having trouble with a pnpm workspace where both have vuetify and have slightly different dependencies, the vuetifyBase does not match so the vuetifyStylesPlugin does not work correctly.

https://github.com/vuetifyjs/nuxt-module/blob/ca42a7afdf241e7ff897ad147bbe58741c2f2c66/src/vite/vuetify-styles-plugin.ts#L17

isSubdir(vuetifyBase, path.isAbsolute(source) ? source : importer) == false

vuetifyBase = "/PROJECT_DIR/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/vuetify"

importer = "/PROJECT_DIR/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs?v=e67783cb"

Any way to make it less restrictive the base should be checking just from node_modules? etc.

ar45 avatar Nov 20 '24 23:11 ar45