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

Need Support for Svelte Framework #205

Open
ssantanuberaa opened this issue Jul 30, 2021 · 1 comment
Open

Need Support for Svelte Framework #205

ssantanuberaa opened this issue Jul 30, 2021 · 1 comment

Comments

@ssantanuberaa
Copy link

Hello IZI Team,
I cannot use sweet iziToast in my Svelte project.

✔ service worker (10ms)
webpack:///./node_modules/izitoast/dist/js/iziToast.js?:22
                BODY = document.querySelector('body'),
                       ^

ReferenceError: document is not defined
    at eval (webpack:///./node_modules/izitoast/dist/js/iziToast.js?:22:10)
    at eval (webpack:///./node_modules/izitoast/dist/js/iziToast.js?:8:74)
    at eval (webpack:///./node_modules/izitoast/dist/js/iziToast.js?:13:3)
    at Object../node_modules/izitoast/dist/js/iziToast.js (C:\repos\competitive\__sapper__\dev\server\server.js:97:1)
    at __webpack_require__ (C:\repos\competitive\__sapper__\dev\server\server.js:21:30)
    at eval (webpack:///./src/routes/index.svelte?:7:66)
    at Module../src/routes/index.svelte (C:\repos\competitive\__sapper__\dev\server\server.js:349:1)
    at __webpack_require__ (C:\repos\competitive\__sapper__\dev\server\server.js:21:30)
    at eval (webpack:///./src/node_modules/@sapper/internal/manifest-server.mjs?:8:78)
    at Module../src/node_modules/@sapper/internal/manifest-server.mjs (C:\repos\competitive\__sapper__\dev\server\server.js:205:1)
> Server crashed
@Nisthar
Copy link

Nisthar commented Apr 29, 2022

try checking if its running on the browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants