t3-oss / create-t3-turbo

Clean and simple starter repo using the T3 Stack along with Expo React Native
https://turbo.t3.gg
MIT License
4.27k stars 350 forks source link

bug: Console Logs not showing for Next.js backend #1050

Closed moritzWa closed 3 weeks ago

moritzWa commented 1 month ago

Provide environment information

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 689.95 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.0/bin/npm
    pnpm: 9.1.0 - ~/.nvm/versions/node/v20.12.0/bin/pnpm

Describe the bug

I'm not seeing any of the console logs I put in my routes.

I know this repo implements loggerLink, but is insufficient.

Maybe this is due to the "terminal tubro ascii layout"?

image

I noticed that the default outputMode for turbo is full which "Displays all output (default)"

So, both of these did nothing:

  1. adding --output-logs=full to the dev script
  2. adding "outputMode": "full" to the dev pipeline in the turbo.json

Example of stuff I'm trying to log:

image

Link to reproduction

n/a (haven't made any significant changes to the template)

To reproduce

  1. add logs to route like post.ts
  2. run pnpm run dev
  3. see if they appear in the console

Additional information

No response

moritzWa commented 1 month ago

Also, pls lmk if I should post this in the main t3 repo or the turbo repo instead.

RedBeardEth commented 1 month ago

As indicated in the first picture - you need to use the arrow keys to navigate up from @acme/api to @acme/nextjs @moritzWa

moritzWa commented 1 month ago

ohh, thank you! Should I add a sentence about this to the README? Or change this text to "Use arrow keys to navigate between packages". (Not just "Use arrow keys to navigate.)

juliusmarminge commented 1 month ago

Doesnt the UI say?

moritzWa commented 1 month ago

@juliusmarminge is there a way to make the logged content full height? Is this part of turbo?

2024-05-27 13 32 55

moritzWa commented 1 month ago

ok nvm found this https://github.com/vercel/turbo/discussions/7802

juliusmarminge commented 3 weeks ago

should be better in turbo 2.0

juliusmarminge commented 3 weeks ago

closing as this is not related to here, but like i said the TUI mode is better / less buggy in 2.0 where it's no longer experimental