-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
svelteToast
is not defined
#75
Comments
@vbernabe moving your issue into a new one. Don't look like you're using SvelteKit. How's your setup like? Are you using Svelte? |
Hi @zerodevx I am using Svelte and not SvelteKit.. |
Using svelte-routing, specifically. |
Not too familiar with svelte-routing tbh. For Svelte setups, the tooling should be "svelte-aware", ie. tooling knows when it's dealing with a Svelte component and picks up the correct code. Try importing the compiled code instead and see if the error still occurs: import { toast, SvelteToast } from '@zerodevx/svelte-toast/dist' |
Import
Set the component
<SvelteToast {options} />
On Form Submit
toast.push('Hello world!')
This is the only Error from Web Console and the page is showing a blank white screen:
Uncaught ReferenceError: svelteToast is not defined <anonymous> http://localhost:8080/build/bundle.js?version=xxx:78489 [bundle.js:78489:1](http://localhost:8080/build/bundle.js?version=xxx) <anonymous> http://localhost:8080/build/bundle.js?version=xxx:78489
There seemed to be no other errors on the command line
Originally posted by @vbernabe in #73 (comment)
The text was updated successfully, but these errors were encountered: