Giter Site home page Giter Site logo

Modal error on close about sveltestrap HOT 7 CLOSED

bestguy avatar bestguy commented on August 11, 2024
Modal error on close

from sveltestrap.

Comments (7)

ecentinela avatar ecentinela commented on August 11, 2024 1

You are right! This is related with the webpack loader.

I was missing part of the configuration:

    alias: {
      svelte: path.resolve('node_modules', 'svelte')
    },
    mainFields: ['svelte', 'browser', 'module', 'main']

After adding these lines, it started to work! :)

Thanks!

from sveltestrap.

bestguy avatar bestguy commented on August 11, 2024

Hi @ecentinela , do you have any sample code or repo showing usage? Are you using in a router, or sapper app, etc?

from sveltestrap.

ecentinela avatar ecentinela commented on August 11, 2024

Hi @bestguy!

You can use the demo (https://codesandbox.io/s/modern-cache-znqt3) from a previous ticket (#105) that is failing too.

If you open the modal and click the "cross" icon, you will see this in your console.

Hope it helps.

from sveltestrap.

frederikhors avatar frederikhors commented on August 11, 2024

@ecentinela the problem is just on codesandbox.

If you download the zip it works good.

No problem at all on this.

from sveltestrap.

ecentinela avatar ecentinela commented on August 11, 2024

Hi @frederikhors, @bestguy, here you have a demo with the error. Copy & pasted the demo like I said in my previous comment. Failing in local when I launch the project with "yarn watch".

svelte.zip

Hope it helps.

from sveltestrap.

frederikhors avatar frederikhors commented on August 11, 2024

You're right. I'm using Rollup in my labs: everything ok. I think the problem is something bad w/ webpack.

from sveltestrap.

frederikhors avatar frederikhors commented on August 11, 2024

Can you close the issue please?

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.