#Failed to execute 'querySelector' on 'Document': '#' is not a valid selector.

20 messages · Page 1 of 1 (latest)

winged fern
#

does the url have an empty hash?

#

not even something like <A href="/hello#">?

#

Well, then we probably need a repro, on a related note I don't think it should fail with an empty hash

#

Yes, anything live to see that behavior?

#

Not that I'm an expert, but I've read solid router code a few times

#

Yep, but need actual repro to figure out what's causing this

#

I believe this is used for scroll restoration for hash links

winged fern
#

You have pause on uncaught exceptions checked

#

It's already wrapped with try catch

#

It could fail if you actually passed an invalid selector through url or A link

#

i don't know how document.querySelector is implemented but if it doesn't check if the selector is empty, this could surely save us some cycles

winged fern
#

why did you turn it on though?

#

solid uses try catch for error boundary, you can also ignore node_modules

#

not sure if it also ignores caught errors though

winged fern
#

my account doesn't have phone verification either but has 2FA and it was opened since years ago, not sure if things have changed