frontend navigation: null is not an object (evaluating '_el$11.nextSibling')
When navigating in the frontend, I have that error that occurs.
There's a staging server which should help you see what's going on: https://frontend.weltkern.dev.auaust.ch
When you land on the page, it should look normal. If you navigate to the products page (by clicking the image at the center of the landing page hero), you should see an error. If you reload the page, it's fine. If you then navigate back to the homepage (scroll a little to see the navbar as it's currently still white-on-white) you get the error back, until you reload.
I'll provide screenshots in a few seconds
5 Replies
This is the component that causes the error.
Which is the same in the products page
this is the component's code:
managed to remove the error by removing that part:
item-pricing is a web component, not a Solid one i case it matters
removing only item-pricing or RarityIcon doesn't change anything: if i have either one of them, i get the error
I didn't manage to debug that as it only appears when using the frontend router; otherwise the component works as expected
actually if you want the whole code base, here's the repo: https://github.com/AUAUST/clients-nkco-weltkern-frontend/tree/homepage
the erroring component is in
./src/components/layouts/grid/Item.tsx
Bringing this post back to life as I still couldn't find a fix
A workaround I found is to wrap <item-name>…</item-name> in a <div>it then stop erroring
i believe it's related to web components handling cause of their custom names ?
I don't really know, I think it's a bug ?