mckenziearts / laravel-notify

Flexible Flash notifications for Laravel
Other
1.62k stars 189 forks source link

Close button not working.. #35

Closed MHassanSaqib closed 3 years ago

MHassanSaqib commented 4 years ago

I am getting the following error while closing the notification. Please guide me about it.

app.js:38298 [Vue warn]: Property or method "show" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in <Root>)
mckenziearts commented 4 years ago

Do you use vuejs on your project?

MHassanSaqib commented 4 years ago

Yes, I am using VueJS and including it using laravel scaffolding

mckenziearts commented 4 years ago

The package uses alpinejs and it doesn't work very well with frontend applications (React or Vuejs). It is based on a Laravel session to display the notification