You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using swiper.js and its core library uses Element.matches for some selecting mechanism, and <Match />'s matches property overrides this, raising type error matches is not a function that it took me about 1 hr to realize that it was naming pollution
My solution is wrapping all my components into another big one (before this I used a <main/> plain HTML element with path property), and giving the top-level component a path property for the router and it worked well
Maybe this issue could be taken into further account, because the stacktrace of naming pollution in some debuggers like DevTools is not that informative
The text was updated successfully, but these errors were encountered:
Hi @anqurvanillapy - definitely a strange error! I think we can have Router check if the child it is rendering is an HTML element and avoid passing down any of the URL matches in that case.
swiper.js
and its core library usesElement.matches
for some selecting mechanism, and<Match />
'smatches
property overrides this, raising type errormatches is not a function
that it took me about 1 hr to realize that it was naming pollution<main/>
plain HTML element withpath
property), and giving the top-level component apath
property for the router and it worked wellThe text was updated successfully, but these errors were encountered: