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
The user gets logged correctly (if the template is mostly empty), ejs renders the template correctly, but logs this error in the console: Cannot read properties of null (reading 'id')
Once I add CSS into the template <link rel="stylesheet" href="/card.css">
I get this error
user.id becomes completely unusable everywhere and will just crash node
This is the weirdest bug i have ever encountered, I am not even sure if this is linked to ejs in any way. The bug seems to change its behavior in some random circumstances I can not pinpoint
The text was updated successfully, but these errors were encountered:
tzwel
changed the title
Cannot read properties of null but template renders correctly if CSS is linked
Cannot read properties of null if CSS is linked
Dec 20, 2023
I'm debugging this for over two hours already
This is the returned user object
The user gets logged correctly (if the template is mostly empty), ejs renders the template correctly, but logs this error in the console:
Cannot read properties of null (reading 'id')
Once I add CSS into the template
<link rel="stylesheet" href="/card.css">
I get this error
user.id
becomes completely unusable everywhere and will just crash nodeThis is the weirdest bug i have ever encountered, I am not even sure if this is linked to ejs in any way. The bug seems to change its behavior in some random circumstances I can not pinpoint
The text was updated successfully, but these errors were encountered: