Comments (7)
Hi @RaulVS14 actually this should be fixed in sveltestrap 3.2.4, thanks for the heads up.
Please confirm your issue is corrected and can close the issue.
from sveltestrap.
Yes, thank you! I changed the import, when I got SSR errors.
from sveltestrap.
Hi @RaulVS14 , we just released v3.2.2 this morning, which fixes a related issue. Can you please try v3.2.2 and confirm if you still see this issue?
from sveltestrap.
Yes, issue is corrected. I had an problem with using it in my environment though. It gave me window is not defined
error. The problem occurred from Collapse for windowWidth. I managed to get it working by wrapping it in the onMount method. I also defined windowWith variable outside the method onMount, because svelte:window couldn't find it.
I don't know if it makes sense in the context of svelte, but it worked for me like that.
from sveltestrap.
Hi Raul, hmm, that's weird. It this a normal app or SSR?
from sveltestrap.
I am not sure, I've seen SSR errors, so I guess it's SSR.
My current setup:
I started with sapper template running in local with npm dev run. To this I added sveltetrap for bootstrap functionality.
from sveltestrap.
Thanks, I'll test with Sapper.
FYI in SSR environments you may need to import the component src directly:
import Card from 'sveltestrap/src/Card.svelte';
but am still trying to determine the 'correct' way for Svelte 3, has been a lot of changes.
from sveltestrap.
Related Issues (20)
- Svelte 4 support HOT 24
- Build with Node 18+ HOT 3
- Support `keyboard` option of Offcanvas
- ESM/CJS conflict when importing Sveltestrap components HOT 4
- Migrate to floating UI
- Add `"type": "module"` to `package.json` HOT 2
- Button dropdown work only on second press HOT 1
- [docs] "Misleading" Alert title in the first example
- `hidden` flag/attribute on Nav/NavItem
- Documentation on color handling is incorrect HOT 1
- Mixing FormGroup and InputGroup
- Modal on:opening and on:open events are not firing HOT 1
- Looking for new maintainer HOT 4
- Add `plainText` and `size` props for Input
- Allow markup in Input labels
- Important: Repo Migration! HOT 1
- Input date with max attribute keyboard issue HOT 2
- Missing exports condition
- Carousel theme not working
- Adding Classes to elements result in "unused css selector" with in document CSS. HOT 1
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 sveltestrap.