-
Notifications
You must be signed in to change notification settings - Fork 20
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
Update for sveltekit? #27
Comments
Try this in ...
optimizeDeps: {
exclude: ['chota']
},
... |
// svelte.config.cjs
const preprocess = require('svelte-preprocess');
/** @type {import('@sveltejs/kit').Config} */
module.exports = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
optimizeDeps: {
exclude: ['chota']
}
}
}
}; That unfortunately did not help. |
You can use |
Worked for me! |
I try to use svelte-chota with SvelteKit, so maybe it's related but when I
It throws: Duplicate slot name "left" in <Nav> |
Oh, yes indeed, tx @AlexxNB !! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems this library is not yet compatible with the new sveltekit (beta). As there is no App.svelte anymore, I tried adding an
import 'chota'
to $layout.svelte, but the compilation fails:Not sure how to get this working.
The text was updated successfully, but these errors were encountered: