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
my only guess is that it has something to do with a list element that occurs in one page but not another
did you follow the stacktrace? You can dismiss the "on reload" thing, as your issue is SSR-related
sorry, im so confused. it says the error is occuring on line 48, then there is no line 48?? how is that possible?
the stacktrace says line 16 of routes/philosophy.tsx
sorry, different page same problem
what was the actual file though?
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.
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
Yeah this looks like one of the missing closing tag bugs. I thought I got them all. Yeah appreciate the reproduction.
StackBlitz
Solid-start Bare Example - StackBlitz
Run official live example code for Solid-start Bare, created by Solidjs on StackBlitz
Honestly if I saw the rest of the template I could probably pinpoint the bug.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i will post the issue tonight sorry for delay
I did fix most of them I believe at this point. So any specific reproductions are much appreciated.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Awesome thank you