I got this weird error on a fresh sveltekit installation, just by pasting the example code in a +page.svelte
Internal server error: Cannot read properties of undefined (reading 'SWR')
at eval (/node_modules/sswr/dist/sswr.es.js:130:35)
at async instantiateModule (file:///Users/vlad/Documents/zecode/@lib/JS/vicon/frontend/node_modules/vite/dist/node/chunks/dep-ca21228b.js:52420:9) (x2)
TypeError: Cannot read properties of undefined (reading 'SWR')
at eval (/node_modules/sswr/dist/sswr.es.js:130:35)
at async instantiateModule (file:///Users/vlad/Documents/zecode/@lib/JS/vicon/frontend/node_modules/vite/dist/node/chunks/dep-ca21228b.js:52420:9)
I'm on a M1 mac.
I ended up whit this setup without specifically wanting to use vite 4. If there is a bare-bones sswr project somewhere I can clone, it would be great, as I am in an early stage of development and there is no significant effort loss.
Thanks again
Hello and thank you for your time,
I got this weird error on a fresh sveltekit installation, just by pasting the example code in a +page.svelte
My package.json is:
I'm on a M1 mac. I ended up whit this setup without specifically wanting to use vite 4. If there is a bare-bones sswr project somewhere I can clone, it would be great, as I am in an early stage of development and there is no significant effort loss. Thanks again