Coder Social home page Coder Social logo

Comments (7)

bestguy avatar bestguy commented on June 28, 2024 1

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.

RaulVS14 avatar RaulVS14 commented on June 28, 2024 1

Yes, thank you! I changed the import, when I got SSR errors.

from sveltestrap.

bestguy avatar bestguy commented on June 28, 2024

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.

RaulVS14 avatar RaulVS14 commented on June 28, 2024

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.

bestguy avatar bestguy commented on June 28, 2024

Hi Raul, hmm, that's weird. It this a normal app or SSR?

from sveltestrap.

RaulVS14 avatar RaulVS14 commented on June 28, 2024

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.

bestguy avatar bestguy commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.