404 page not found
Closed this issue · 1 comments
jramiroz98 commented
Just cloned the repo after my code not working, and found out the same error. Pages don't load, for some reason I get error 404.
jramiroz98 commented
Found the solution!!
First:
npm i vite-plugin-dynamic-import -D
Then change the vite.config to something like this:
import { sveltekit } from '@sveltejs/kit/vite'
import dynamicImport from 'vite-plugin-dynamic-import'
const config = {
plugins: [sveltekit(), dynamicImport()]
}
export default config