nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.98k stars 499 forks source link

Cannot destructure property 'nuxt' of 'this' as it is undefined. #2442

Closed JakuninOleg closed 4 hours ago

JakuninOleg commented 4 hours ago

Environment

Version

v3

Reproduction

Creat new project with nuxi

Install nuxt/ui

Description

Cannot destructure property 'nuxt' of 'this' as it is undefined.

Not working on fresh project

Additional context

No response

Logs

No response

sandros94 commented 4 hours ago

[...]

  • Runtime Modules: @nuxt/ui@2.18.7

[...]

v3

I'm seeing some contrasting information here, could I ask to clarify the following:

How did you install @nuxt/ui? Via module add or directly the via package install (npm/pnpm/bun install)?

What happens if you try to do npm run postinstall and then run the server?

JakuninOleg commented 4 hours ago

I think that was an error with node modules installed on my pc, my bad, close it

sandros94 commented 4 hours ago

I think that was an error with node modules installed on my pc, my bad, close it

Yeah, while checking https://github.com/nuxt/nuxt/issues/29657 that seemed the case. So you can confirm it works now?

sandros94 commented 4 hours ago

@JakuninOleg feel free to reopen if you need.