Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency errors with 17.1 #268

Open
rnenjoy opened this issue Aug 19, 2024 · 25 comments
Open

Dependency errors with 17.1 #268

rnenjoy opened this issue Aug 19, 2024 · 25 comments

Comments

@rnenjoy
Copy link

rnenjoy commented Aug 19, 2024

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
Copy link
Author

rnenjoy commented Aug 19, 2024

Downgraded to 16.0 and problem disappeared.

CORRECTION: 14.1

@userquin
Copy link
Member

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

@rnenjoy
Copy link
Author

rnenjoy commented Aug 20, 2024


  • 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: pnpm@9.6.0
  • Builder: -
  • User Config: srcDir, runtimeConfig, experimental, features, typescript, app, modules, vuetify, apollo, vite, build, devtools, compatibilityDate
  • Runtime Modules: @nuxt/devtools@1.3.9, @pinia/nuxt@0.5.3, @nuxtjs/apollo@5.0.0-alpha.10, vuetify-nuxt-module@0.17.1, @storyblok/nuxt@6.0.10, @sentry/nuxt/module@8.26.0
  • Build Modules: -

@rnenjoy
Copy link
Author

rnenjoy commented Aug 20, 2024

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
Copy link
Member

@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
Copy link
Member

You can also check nuxt/nuxt#28542 if some module/library augmenting @vue/runtime-core instead vue.

@rnenjoy
Copy link
Author

rnenjoy commented Aug 20, 2024

@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
Copy link
Author

rnenjoy commented Aug 20, 2024

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

@userquin
Copy link
Member

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

@rnenjoy
Copy link
Author

rnenjoy commented Aug 20, 2024

Ok deleted now

@changfeng2021
Copy link

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
Copy link

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

@zhaolinlau
Copy link

I am facing the same issue.

@userquin
Copy link
Member

Cannot run the dev server, provide a minimal reproduction:

imagen

@stalker3343
Copy link

same problem

@xanxuz
Copy link

xanxuz commented Sep 9, 2024

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

@userquin
Copy link
Member

can anyone provide a minimal working reproduction?

@xanxuz
Copy link

xanxuz commented Sep 10, 2024

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

@userquin
Copy link
Member

@xanxuz #268 (comment)

@xanxuz
Copy link

xanxuz commented Sep 10, 2024

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

@userquin
Copy link
Member

userquin commented Sep 10, 2024

You can:

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

@xanxuz
Copy link

xanxuz commented Sep 10, 2024

It worked! @userquin Thanks!

@userquin
Copy link
Member

userquin commented Sep 10, 2024

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.

@danielroe
Copy link
Collaborator

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

@frama21
Copy link

frama21 commented Oct 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants