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

Dependency errors with 17.1

Open rnenjoy opened this issue 1 year ago • 25 comments

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

rnenjoy avatar Aug 19 '24 18:08 rnenjoy

Downgraded to 16.0 and problem disappeared.

CORRECTION: 14.1

rnenjoy avatar Aug 19 '24 18:08 rnenjoy

can you shared the repo if public? can you also provide vuetify, node, nuxt... versions (run npx nuxi info from the project root folder)

userquin avatar Aug 19 '24 18:08 userquin



rnenjoy avatar Aug 20 '24 09:08 rnenjoy

can you shared the repo if public? can you also provide vuetify, node, nuxt... versions (run npx nuxi info from 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 avatar Aug 20 '24 09:08 rnenjoy

@rnenjoy please review the reproduction (remove node_modules and .nuxt) and add missing local dependencies like @hc/common and file:/srv/http/@hc/apollo

userquin avatar Aug 20 '24 15:08 userquin

You can also check https://github.com/nuxt/nuxt/pull/28542 if some module/library augmenting @vue/runtime-core instead vue.

userquin avatar Aug 20 '24 15:08 userquin

@rnenjoy please review the reproduction (remove node_modules and .nuxt) and add missing local dependencies like @hc/common and file:/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.

rnenjoy avatar Aug 20 '24 17:08 rnenjoy

Removed local dependencies and updated the repo. Error is still there.

rnenjoy avatar Aug 20 '24 17:08 rnenjoy

You've pushed node_modules and .nuxt to your github reproduction.

userquin avatar Aug 20 '24 17:08 userquin

Ok deleted now

rnenjoy avatar Aug 20 '24 19:08 rnenjoy

I have the same problem. It's a pure project. I only added vuetify-nuxt dependency npx nuxi@latest module add vuetify-nuxt-module

changfeng2021 avatar Aug 21 '24 08:08 changfeng2021

I have this problem on my x86 Mac, but arrch m2 chip is ok

changfeng2021 avatar Aug 22 '24 01:08 changfeng2021

I am facing the same issue.

zhaolinlau avatar Aug 26 '24 06:08 zhaolinlau

Cannot run the dev server, provide a minimal reproduction:

imagen

userquin avatar Aug 27 '24 18:08 userquin

same problem

stalker3343 avatar Sep 07 '24 10:09 stalker3343

I'm facing the same issue and no idea how to solve it 😢

xanxuz avatar Sep 09 '24 17:09 xanxuz

can anyone provide a minimal working reproduction?

userquin avatar Sep 10 '24 11:09 userquin

can you shared the repo if public? can you also provide vuetify, node, nuxt... versions (run npx nuxi info from 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 avatar Sep 10 '24 11:09 xanxuz

@xanxuz https://github.com/vuetifyjs/nuxt-module/issues/268#issuecomment-2313219012

userquin avatar Sep 10 '24 11:09 userquin

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.

imagen

xanxuz avatar Sep 10 '24 11:09 xanxuz

You can:

  • run pnpm add vuetify
  • and/or add .npmrc adding shamefully-hoist=true and run pnpm install

userquin avatar Sep 10 '24 12:09 userquin

It worked! @userquin Thanks!

xanxuz avatar Sep 10 '24 13:09 xanxuz

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.

userquin avatar Sep 10 '24 14:09 userquin

Using latest nuxi vuetify should be automatically installed with nuxi@latest module add vuetify-nuxt-module.

danielroe avatar Sep 10 '24 16:09 danielroe

same issue here when running the nuxt there show the alert Screenshot 2024-10-04 at 10 33 03 PM

then when i open in browser there show like this

Screenshot 2024-10-04 at 10 34 03 PM

frama21 avatar Oct 04 '24 15:10 frama21