question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty

See original GitHub issue

On navigating between certain pages, I’m seeing this error popup. It looks like during cleanup, there is something going wrong with the swiper component?

Uncaught DOMException: Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty.
    at Dom7.removeClass (http://localhost:4000/_next/static/chunks/5.js:222:105)
    at Swiper.removeClasses (http://localhost:4000/_next/static/chunks/5.js:4606:7)
    at Swiper.destroy (http://localhost:4000/_next/static/chunks/5.js:5243:14)
    at destroySwiper (http://localhost:4000/_next/static/chunks/5.js:1520:39)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
BramDecuyperecommented, Sep 10, 2020

Any updates?

@exsesx I’ve moved to swiper completely, since they have their own react implementation (for me this one became way less relevant)

1reaction
kidjp85commented, Jun 26, 2020

It should be fixed in the newest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR DOMException: Failed to execute 'remove ... - GitHub
ERROR DOMException : Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty. #20836.
Read more >
DOM error while using .classList.add method - Stack Overflow
Uncaught DOMException : Failed to execute 'add' on 'DOMTokenList': The token provided ('1 cell-red') contains HTML space characters, which are ...
Read more >
DOMTokenList.remove() - Web APIs - MDN Web Docs
A string representing the token you want to remove from the list. If the string is not in the list, no error is...
Read more >
Javascript Issue - MyBB Community Forums
classie.js:38 Uncaught DOMException: Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty. at Object.
Read more >
JavaScript HTML DOMTokenList Object - W3Schools
A DOMTokenList may look like an array, but it is not. You can loop through a DOMTokenList and refer to its token with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found