Cannot read properties of null (reading 'nextSibling')

Hello, I got this error in production (it was working, then no changes occured), and now I am getting this in development mode too, so I think it was something that changed in solid start that caused this bug. It occurs only when changing pages and goes away on reload. Any suggestions?
17 Replies
romanobro
romanobroOP2y ago
romanobro
romanobroOP2y ago
my only guess is that it has something to do with a list element that occurs in one page but not another
lxsmnsyc
lxsmnsyc2y ago
did you follow the stacktrace? You can dismiss the "on reload" thing, as your issue is SSR-related
romanobro
romanobroOP2y ago
sorry, im so confused. it says the error is occuring on line 48, then there is no line 48?? how is that possible?
lxsmnsyc
lxsmnsyc2y ago
the stacktrace says line 16 of routes/philosophy.tsx
romanobro
romanobroOP2y ago
sorry, different page same problem
lxsmnsyc
lxsmnsyc2y ago
what was the actual file though?
romanobro
romanobroOP2y ago
ok, it is a site of three pages, which uses a "bottom" component at the bottom of the page. For some reason, it is trying to find the next sibling element of that component even though there is none. It is fixed by adding an empty div after the custom component.
romanobro
romanobroOP2y ago
could you tell me the name of the site where you can create a solid start application in the browser? I would like to see if I can replicate it
ryansolid
ryansolid2y ago
Yeah this looks like one of the missing closing tag bugs. I thought I got them all. Yeah appreciate the reproduction.
ryansolid
ryansolid2y ago
StackBlitz
Solid-start Bare Example - StackBlitz
Run official live example code for Solid-start Bare, created by Solidjs on StackBlitz
ryansolid
ryansolid2y ago
Honestly if I saw the rest of the template I could probably pinpoint the bug.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
romanobro
romanobroOP2y ago
i will post the issue tonight sorry for delay
ryansolid
ryansolid2y ago
I did fix most of them I believe at this point. So any specific reproductions are much appreciated.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ryansolid
ryansolid2y ago
Awesome thank you
Want results from more Discord servers?
Add your server