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

Cannot read properties of undefined (reading 'SSR') #2

Closed
rburgst opened this issue Sep 1, 2022 · 2 comments
Closed

Cannot read properties of undefined (reading 'SSR') #2

rburgst opened this issue Sep 1, 2022 · 2 comments

Comments

@rburgst
Copy link

rburgst commented Sep 1, 2022

Cannot read properties of undefined (reading 'SSR')
TypeError: Cannot read properties of undefined (reading 'SSR')
    at file:///Users/user/git/app/node_modules/sveltekit-flash-message/client.js:7:34
    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
    at async nodeImport (file:///Users/user/git/app/node_modules/vite/dist/node/chunks/dep-3ffe6dd0.js:53401:21)
    at async eval (/src/routes/pages/[uid]/+page.svelte:23:31)
    at async instantiateModule (file:///Users/user/git/app/node_modules/vite/dist/node/chunks/dep-3ffe6dd0.js:53330:9)

Have the following versions:

		"@sveltejs/adapter-node": "1.0.0-next.88",
		"sveltekit-flash-message": "^0.6.2",
		"vite": "^3.1.0-beta.1",
		"@sveltejs/kit": "1.0.0-next.457",
@rburgst
Copy link
Author

rburgst commented Sep 1, 2022

ups, was missing the config in vite.config.ts

@rburgst rburgst closed this as completed Sep 1, 2022
@ciscoheat
Copy link
Owner

I'm sorry for the configuration required to make it work, I hope sveltekit can make it easier for libraries like this in the future...

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