vuetify-nuxt-module
vuetify-nuxt-module copied to clipboard
Dependency errors with 17.1
Upgraded to 17.1 but got these errors during install and run dev.
Pre-transform error: Failed to resolve import "vuetify/directives" from "virtual:vuetify-configuration". Does the file exist? Pre-transform error: Failed to resolve import "vuetify/iconsets/mdi" from "virtual:vuetify-icons-configuration". Does the file exist?
Public repro: https://github.com/rnenjoy/vuetify-nuxt-module-bug
Downgraded to 16.0 and problem disappeared.
CORRECTION: 14.1
can you shared the repo if public? can you also provide vuetify, node, nuxt... versions (run npx nuxi info from the project root folder)
- Operating System: Linux
- Node Version: v22.2.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: srcDir, runtimeConfig, experimental, features, typescript, app, modules, vuetify, apollo, vite, build, devtools, compatibilityDate
- Runtime Modules: @nuxt/[email protected], @pinia/[email protected], @nuxtjs/[email protected], [email protected], @storyblok/[email protected], @sentry/nuxt/[email protected]
- Build Modules: -
can you shared the repo if public? can you also provide vuetify, node, nuxt... versions (run
npx nuxi infofrom the project root folder)
https://github.com/rnenjoy/vuetify-nuxt-module-bug
Here you go! Created a minimal repo that has the same errors.
@rnenjoy please review the reproduction (remove node_modules and .nuxt) and add missing local dependencies like @hc/common and file:/srv/http/@hc/apollo
You can also check https://github.com/nuxt/nuxt/pull/28542 if some module/library augmenting @vue/runtime-core instead vue.
@rnenjoy please review the reproduction (remove
node_modulesand.nuxt) and add missing local dependencies like@hc/commonandfile:/srv/http/@hc/apollo
Sorry i'm a bit n00b at this. YOu want me to delete node_modules and .nuxt, and then add the dependencies? Ill check how i can do that.
Removed local dependencies and updated the repo. Error is still there.
You've pushed node_modules and .nuxt to your github reproduction.
Ok deleted now
I have the same problem. It's a pure project. I only added vuetify-nuxt dependency npx nuxi@latest module add vuetify-nuxt-module
I have this problem on my x86 Mac, but arrch m2 chip is ok
I am facing the same issue.
Cannot run the dev server, provide a minimal reproduction:
same problem
I'm facing the same issue and no idea how to solve it 😢
can anyone provide a minimal working reproduction?
can you shared the repo if public? can you also provide vuetify, node, nuxt... versions (run
npx nuxi infofrom the project root folder)https://github.com/rnenjoy/vuetify-nuxt-module-bug
Here you go! Created a minimal repo that has the same errors.
@userquin
@xanxuz https://github.com/vuetifyjs/nuxt-module/issues/268#issuecomment-2313219012
I created a repo to showcase the bug https://github.com/xanxuz/vuetify-nuxt-module-bug
The only thing that I did was to create a clean install and then added the vuetify nuxt module, after that, the moment you try to run the dev command the error appears.
You can:
- run
pnpm add vuetify - and/or add
.npmrcaddingshamefully-hoist=trueand runpnpm install
It worked! @userquin Thanks!
I have no idea how to force pnpm to install peer dependencies (iirc pnpm will not install peers by default), also tried removing vuetify from dependencies and moved to peerDependencies in the module without success. Since vuetify is no being installed inside node_modules (installed inside node_moduled/.pnpm), that's why the error is there in the virtual modules.
Using latest nuxi vuetify should be automatically installed with nuxi@latest module add vuetify-nuxt-module.
same issue here
when running the nuxt there show the alert
then when i open in browser there show like this