Open GauravDhanraja opened 5 months ago
vite: { optimizeDeps: { include: ['just-throttle', 'dayjs'] } }
I had put this dependency inside kite: {} in svelte.config.js which gave me errors.
kite: {}
Found the solution from stack overflow
I needed to put them inside export default defineConfig({ }) in vite.config.js file like this,
export default defineConfig({ })
export default defineConfig({ plugins: [sveltekit()], vite: { optimizeDeps: { include: ['just-throttle', 'dayjs'] } } });
vite: { optimizeDeps: { include: ['just-throttle', 'dayjs'] } }
I had put this dependency inside
kite: {}
in svelte.config.js which gave me errors.Found the solution from stack overflow
I needed to put them inside
export default defineConfig({ })
in vite.config.js file like this,export default defineConfig({ plugins: [sveltekit()], vite: { optimizeDeps: { include: ['just-throttle', 'dayjs'] } } });