Open ambarvm opened 3 years ago
The component works after adding '@beyonk/svelte-notifications'
to optimizeDeps.exclude
in vite config. The String.prototype.startsWith
error still appears in sveltekit.
Interesting. I've not used it with SvelteKit yet but plan to very soon. It sounds like we're doing something which isn't fully ejs compliant.
The component works after adding
'@beyonk/svelte-notifications'
tooptimizeDeps.exclude
in vite config. TheString.prototype.startsWith
error still appears in sveltekit.
FWIW I was not getting an error but notifications were not displaying. Doing the above addressed the issue for me as well.
The component does not show toast. Tried in sveltekit app and create-vite svelte app.
Steps to reproduce
pnpm init svelte@next my-app
routes/index.svelte
pnpm dev
String.prototype.startsWith called on null or undefined
TypeError: String.prototype.startsWith called on null or undefined at startsWith ()
at node:internal/errors:811:19
at Array.filter ()
at node:internal/errors:809:16
at prepareStackTrace (node:internal/errors:96:12)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:38)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)