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

Not working with server side rendering #110

Open
mslourens opened this issue Sep 23, 2021 · 0 comments
Open

Not working with server side rendering #110

mslourens opened this issue Sep 23, 2021 · 0 comments

Comments

@mslourens
Copy link

I tried using this library with Sveltekit (SSR enabled), but got the following error:

21:54:40 [vite] Error when evaluating SSR module /node_modules/weightless/button/button.js:
ReferenceError: window is not defined
    at ../src/lib/template-result.ts:32:21
    at async instantiateModule (/Users/maurits/Documents/projects/personal/pianlibro/node_modules/vite/dist/node/chunks/dep-36bf480c.js:75140:9)`
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

1 participant