Comments (7)
You can use import 'chota/dist/chota.css'
instead of import 'chota'
.
from svelte-chota.
Try this in vite
section of the kit
config:
...
optimizeDeps: {
exclude: ['chota']
},
...
from svelte-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.
from svelte-chota.
You can use
import 'chota/dist/chota.css'
instead ofimport 'chota'
.
Worked for me!
Thanks!
from svelte-chota.
I try to use svelte-chota with SvelteKit, so maybe it's related but when I
<Nav>
<a slot="left" >Menu1</a>
<a slot="left" >Menu2</a>
</Nav>
It throws: Duplicate slot name "left" in <Nav>
Any advice?
from svelte-chota.
from svelte-chota.
Oh, yes indeed, tx @AlexxNB !!
from svelte-chota.
Related Issues (20)
- Correct documentation text HOT 8
- Tabs in nav HOT 5
- По поводу установки в Sapper HOT 2
- Binding values of Form components HOT 1
- Weird errors emerge HOT 3
- A11y: A form label must be associated with a control. HOT 5
- Dark mode toggle HOT 1
- Need to add correct instructions in Readme.md HOT 2
- Cannot read property '$$' of undefined HOT 1
- Duplicate slot names using Svelte 3.35 HOT 1
- Error when using NAV HOT 2
- No responsive behavior in nested Rows and Cols
- Example how to use it in Sapper HOT 1
- Card element is broken in SSR mode (elder.js)
- Feature-request: Tabs, listen for programmatic change in value HOT 1
- Dropdown icons are broken in Safari
- class names doesn't work as expected
- Error in Nav component used in Sapper
- Modal bind:open HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-chota.