nuxt / ui

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

Nuxt v3.13.1 has a breaking change with useId #2158

Closed alexcroox closed 2 months ago

alexcroox commented 2 months ago

Environment


Version

v2.18.4

Reproduction

None

Description

Heads-up, my tests are failing in the Nuxt update [3.13.0 -> 3.13.1]

Error: TypeError: useId is not a function
 ❯ ../node_modules/@nuxt/ui/dist/runtime/components/forms/SelectMenu.vue:397:68

Nuxt 3.13.1 switched to using the native Vue useId

Additional context

No response

Logs

No response

HigherOrderLogic commented 2 months ago

This shouldn't happen. Maybe trying to remove the node_modules and re-install all deps?

billnbell3 commented 2 months ago

did not help. Tried all of that.

noook commented 2 months ago

You might not only need to reinstall deps, but also refresh your lockfile so that Nuxt pins its Vue version to 3.5.

Have you correctly upgraded Nuxt with the following command ?

npx nuxi@latest upgrade --force
benjamincanac commented 2 months ago

I just tried to reproduce with a fresh install (npx nuxi init -t ui) without any issue, could you please provide a reproduction?

clinton9ice commented 2 months ago

I am also having this issue, any solution for this yet ?

I have tried deleting my node_modules and yarn lock files to reinstall everything again but the error persists.

clinton9ice commented 2 months ago

So i just did a little bit of digging i found out it was vue version error, i was basically using 3.4.38 but i upgraded to 3.5.4 and it automatically got resolved.

benjamincanac commented 2 months ago

@alexcroox @billnbell3 Can you confirm your issue is solved as well?

alexcroox commented 2 months ago

I can confirm npx nuxi@latest upgrade --force worked for me