useId
is not a function in Vue 3.5.13 (PrimeVue 4.3.1)
#7417
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When using PrimeVue 4.3.1 with Vue 3.5.13, an error occurs:
TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_0__.useId) is not a function
This happens because
useId
was introduced in Vue 3.6, but PrimeVue is expecting it to be available in Vue 3.5.13.Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://primevue.org/datatable/
Environment
<Button />
)npm run dev
useId is not a function
Vue version
Vue 3.5.13
PrimeVue version
4.3.1
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
<Button />
)npm run dev
useId is not a function
Expected behavior
PrimeVue should check if
useId
is available before calling it, or ensure it only uses features available in Vue 3.5.13.The text was updated successfully, but these errors were encountered: