Skip to content

Alpine Expression Error: ToastComponent is not defined #113

Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kennethsantianez
Comment options

Answer selected by usernotnull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants