We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No PrimeVue Toast provided!
I have a Nuxt 3 layer that provides a default.vue layout like this example:
default.vue
<script lang="ts" setup> const toast = useToast(); const test = () => { toast.add({ severity: "success", summary: "Success Message", detail: "Order submitted", life: 3000, }); } </script> <template> <Button label="test" @click="test" /> <slot /> </template>
When working on the Nuxt 3 layer playground, everything works well. My toasts are appearing correctly.
But when I basically extend this Nuxt 3 layer to another new Nuxt 3 application, I have this 500 error saying that No PrimeVue Toast provided!:
Here is my primevue configuration in my nuxt.config:
nuxt.config
export default defineNuxtConfig({ // ... primevue: { usePrimeVue: true, components: { include: [ // ... ] } }, // ... });
It seems that the Primevue instance is not detected correctly? 🤔 I also have the error if I use it in pages / components directly.
I should point out that if I remove the useToast, everything works correctly. Thanks a lot for your work!
useToast
The text was updated successfully, but these errors were encountered:
Hi,
Firstly, you need to use component in template and please see my comment; #15 (comment)
Best Regards,
Sorry, something went wrong.
No branches or pull requests
I have a Nuxt 3 layer that provides a
default.vue
layout like this example:When working on the Nuxt 3 layer playground, everything works well. My toasts are appearing correctly.
But when I basically extend this Nuxt 3 layer to another new Nuxt 3 application, I have this 500 error saying that
No PrimeVue Toast provided!
:Here is my primevue configuration in my
nuxt.config
:It seems that the Primevue instance is not detected correctly? 🤔
I also have the error if I use it in pages / components directly.
I should point out that if I remove the
useToast
, everything works correctly.Thanks a lot for your work!
The text was updated successfully, but these errors were encountered: