Alpine Expression Error: ToastComponent is not defined #113
-
Hi @usernotnull , I tried to install the package on a fresh install of Laravel using Laravel Breeze starter kit. I also imported ToastComponent in my Laravel v9.1.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @kennethsantianez, First, we need to make sure that app.js has the correct code: https://github.com/usernotnull/tall-toasts#option-1-npm-module THEN, make sure you rebuild the frontend by calling The above steps should be enough. As a last resort, you could try option 2 (removing the entries you added in app.js), see https://github.com/usernotnull/tall-toasts#option-2-script-tag |
Beta Was this translation helpful? Give feedback.
Hey @kennethsantianez,
You're getting this error because the component has not been initialized.
First, we need to make sure that app.js has the correct code: https://github.com/usernotnull/tall-toasts#option-1-npm-module
THEN, make sure you rebuild the frontend by calling
npm run dev
. (I'm guessing here is where you may have skipped).The above steps should be enough. As a last resort, you could try option 2 (removing the entries you added in app.js), see https://github.com/usernotnull/tall-toasts#option-2-script-tag