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
Ben
BenOPā€¢3y ago
The H1 is rendering on my page as expected
Neto
Netoā€¢3y ago
when you {} a function you "render" the result of the function
Neto
Netoā€¢3y ago
the undefined is the result, there is no real value to be renderized
Ben
BenOPā€¢3y ago
Hmmm still not really following where I'm going wrong @Neto
Neto
Netoā€¢3y ago
there is nothing to render with the return of the log function
Ben
BenOPā€¢3y ago
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
Kasper
Kasperā€¢3y ago
Can you post your logs?
Ben
BenOPā€¢3y ago
Neto
Netoā€¢3y ago
just tested here
Ben
BenOPā€¢3y ago
In the terminal
Neto
Netoā€¢3y ago
that is the server logs not the browser logs
Ben
BenOPā€¢3y ago
Ben
BenOPā€¢3y ago
Browser
Neto
Netoā€¢3y ago
Neto
Netoā€¢3y ago
just tested with vite and its working
Ben
BenOPā€¢3y ago
Ya that's why it's weird that it's not console logging lol
Neto
Netoā€¢3y ago
uhh let me spin a next 13
Ben
BenOPā€¢3y ago
ty
Neto
Netoā€¢3y ago
Ben
BenOPā€¢3y ago
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
Kasper
Kasperā€¢3y ago
turbo is still experimental, no?
Ben
BenOPā€¢3y ago
I think so ya
Neto
Netoā€¢3y ago
well same issue here with --turbo
Ben
BenOPā€¢3y ago
Guess that's why it's still experimental LOL
Neto
Netoā€¢3y ago
lol
Kasper
Kasperā€¢3y ago
good opportunity to check if it's a known issue and if not, report it! šŸ™‚
Ben
BenOPā€¢3y ago
Will do! Thanks for the help guys Holy shit, there's 234 open issues LOL
Neto
Netoā€¢3y ago
that is low check flutter open issues šŸ™‚
Kasper
Kasperā€¢3y ago
Flutter, November 8, 2022 ā€“ November 15, 2022
Kasper
Kasperā€¢3y ago
DW they'll be done lul
Want results from more Discord servers?
Add your server