smui-example-sveltekit
smui-example-sveltekit copied to clipboard
Application doesn't work
cloned the repo ran: npm i ran: npm run dev
got below error
I'm having same issue
Same here. Been struggling for hours to get this working with SvelteKit, and now your own example doesn't even work... 😩
Not able to run the application
14.34.40 [vite] Error when evaluating SSR module /src/routes/index.svelte: Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\mugu\Frontier\repos\svelte\smui-example-sveltekit\node_modules\@smui\button\index.js from C:\Users\mugu\Frontier\repos\svelte\smui-example-sveltekit\node_modules\vite\dist\node\chunks\dep-63d4bd14.js not supported. Instead change the require of index.js in C:\Users\mugu\Frontier\repos\svelte\smui-example-sveltekit\node_modules\vite\dist\node\chunks\dep-63d4bd14.js to a dynamic import() which is available in all CommonJS modules. at nodeRequire (C:\Users\mugu\Frontier\repos\svelte\smui-example-sveltekit\node_modules\vite\dist\node\chunks\dep-63d4bd14.js:75134:17) at ssrImport (C:\Users\mugu\Frontier\repos\svelte\smui-example-sveltekit\node_modules\vite\dist\node\chunks\dep-63d4bd14.js:75076:20) at eval (/src/routes/index.svelte:7:37) at async instantiateModule (C:\Users\mugu\Frontier\repos\svelte\smui-example-sveltekit\node_modules\vite\dist\node\chunks\dep-63d4bd14.js:75119:9)
Is this a dupe of #6?