Skip to content
New issue

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

Toast: Not working in Nuxt 3.13.2+ #6778

Open
Ed1ks opened this issue Nov 13, 2024 · 2 comments
Open

Toast: Not working in Nuxt 3.13.2+ #6778

Ed1ks opened this issue Nov 13, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Ed1ks
Copy link

Ed1ks commented Nov 13, 2024

New Issue created because the previous issue got closed unresolved with "Cannot replicate"
#6563

Please check reproducer

Describe the bug

After updating to Nuxt 3.13.2 the Toasts dont work anymore using useToast() composable from primvue/nuxt module.
In 3.13.1 it worked fine.

Reproducer

https://stackblitz.com/edit/nuxt-starter-nq7qcl?file=app.vue

PrimeVue version

4.2.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

Edge, Stackblitz

Steps to reproduce the behavior

  1. open Stackblitz
  2. On Button click, no Toast show up
  3. install Nuxt 3.13.1
  4. On Button click a Toast show up

Expected behavior

A Toast

@Ed1ks Ed1ks added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 13, 2024
@j0rgedev
Copy link
Contributor

Hello @Ed1ks. You have configured PrimeVue autoimport: false. Thats why the useToast() composable isn't working. I'm using primevue with the latest version of nuxt and have configured autoimport: true, and I don't have any problems with the toast composable

@vampirefan
Copy link

yes

Hello @Ed1ks. You have configured PrimeVue autoimport: false. Thats why the useToast() composable isn't working. I'm using primevue with the latest version of nuxt and have configured autoimport: true, and I don't have any problems with the toast composable

yes! finally make it work~ need to configure autoimport to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

3 participants