Not able to console.log in NextJS 13
Alright so kind of a dumb question, but there's no such thing so here it goes. Building out a simple recipe store website, currently trying to display a single recipe, using the id slug to query my DB for it.
I guess the first thing I'm not understanding is why none of these console.logs are printing anywhere? They are neither in my browser console, nor in the terminal window where I'm running npm run dev.
The second problem is that the H2 that's supposed to render the recipe name isn't being rendered on the page, though I suspect I'll at least have a bit of an easier time figuring out what's going on with that if I can at least see these console.logs š
31 Replies
The H1 is rendering on my page as expected
when you {} a function
you "render" the result of the function
the undefined is the result, there is no real value to be renderized
Hmmm still not really following where I'm going wrong @Neto
there is nothing to render with the return of the log function
Ya I'm not trying to render that log, I would still expect test to show up in the console tho, no? Also neither of the other two console logs are showing up
Can you post your logs?
just tested here
In the terminal
that is the server logs
not the browser logs
Browser
just tested with vite and its working
Ya that's why it's weird that it's not console logging lol
uhh
let me spin a next 13
ty
Oh
It was because in my package JSON I was using next dev --turbo
Didn't realize that would cause issues with the console logs
Not really sure why it does
turbo is still experimental, no?
I think so ya
well
same issue here with --turbo
Guess that's why it's still experimental LOL
lol
good opportunity to check if it's a known issue and if not, report it! š
Will do! Thanks for the help guys
Holy shit, there's 234 open issues LOL
that is low
check flutter open issues
š
Flutter, November 8, 2022 ā November 15, 2022
DW they'll be done