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