You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading primevue, @primevue/themes, and @primevue/nuxt-module to version 4.0.4 I am getting this TypeScript error on the StepPanel activateCallback slot prop:
Expected 0 arguments, but got 1.
This error is wrong because we need to be able to pass a string or a number to activateCallback so that we can navigate to that step.
The only way to solve the errors I am seeing in the IDE are to add this:
But that should not be needed because PrimeVue Nuxt is supposed to auto import all the components.
I tried my best to recreate the error in Stackblitz, although I think it can only be seen in local. The live reproduction added here is using PrimeVue Nuxt with a direct copy of the Stepper template example in the docs. It tries to pass in a number to activateCallback as shown by the docs. As described above it seems to be working in Stackblitz but it does not work on my local version.
We're unable to replicate your issue, if you are able to create a reproducer or add details please edit this issue. This issue will be closed if no activities in 20 days.
Describe the bug
After upgrading
primevue
,@primevue/themes
, and@primevue/nuxt-module
to version4.0.4
I am getting this TypeScript error on theStepPanel
activateCallback slot prop:This error is wrong because we need to be able to pass a
string
or anumber
toactivateCallback
so that we can navigate to that step.The only way to solve the errors I am seeing in the IDE are to add this:
But that should not be needed because PrimeVue Nuxt is supposed to auto import all the components.
I tried my best to recreate the error in Stackblitz, although I think it can only be seen in local. The live reproduction added here is using PrimeVue Nuxt with a direct copy of the Stepper template example in the docs. It tries to pass in a number to
activateCallback
as shown by the docs. As described above it seems to be working in Stackblitz but it does not work on my local version.Reproducer
https://stackblitz.com/edit/nuxt-starter-v2zujz?file=app.vue
PrimeVue version
4.0.4
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: