Coder Social home page Coder Social logo

Swup stuck on 'is-changing' about swup HOT 5 CLOSED

swup avatar swup commented on May 3, 2024
Swup stuck on 'is-changing'

from swup.

Comments (5)

gmrchk avatar gmrchk commented on May 3, 2024 1

I wanted to know on which line of code the error appeared in non-minified version, where I'm quite sure it is not on line 1... Should have made that clear, sorry about that.
But anyway, I was digging around and I think I found the issue.

In case that body element had an attribute which included " " at the beginning, end, or several in a row, swup would try to add the class "" in body classList, which leads to the mentioned error.

The latest version (0.3.7) fixed the issue. Please update your version. If the problem persists after the update, please post the line where the error happens and reopen the issue. Thanks!

from swup.

gmrchk avatar gmrchk commented on May 3, 2024

Can you please include a non-minified version of swup and post the error again?

from swup.

hechtron avatar hechtron commented on May 3, 2024

Sorry... i missed your response.

Actually, I'm getting exactly the same error with the minified or non-minified versions.

from swup.

hechtron avatar hechtron commented on May 3, 2024

Brilliant... yes, that did it. Many thanks!

from swup.

SergeyFrancev avatar SergeyFrancev commented on May 3, 2024

I fixed this error message, after replace
[class]="role === user.role ?'active':''"
on
[class.active]="role === user.role"
thx @gmrchk

from swup.

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.