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.53k stars 380 forks source link

bug: trpc Go-To Definition Links Not Working After Fresh Build #1096

Open msmps opened 2 months ago

msmps commented 2 months ago

Provide environment information

  System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 69.47 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.1 - ~/Library/Caches/fnm_multishells/31580_1720183315041/bin/node
    npm: 10.2.4 - ~/Library/Caches/fnm_multishells/31580_1720183315041/bin/npm
    bun: 1.1.17 - /opt/homebrew/bin/bun

Describe the bug

Description:

I encountered an issue with the trpc Go-To Definition links not functioning properly after running a fresh build in a newly bootstrapped project. This problem seems to occur after the types are generated in the dist/ folder of the API package.

Expected Behavior:

The Go-To Definition links for trpc should work correctly, allowing navigation to type definitions.

Actual Behavior:

The Go-To Definition links for trpc do not work after running a fresh build.

Assumption:

The issue appears to be related to the type generation process in the dist/ folder of the API package.

Link to reproduction

N/A

To reproduce

  1. Bootstrap a new project (tested on the latest version).
  2. Run pnpm run build
  3. Attempt to use the Go-To Definition feature for trpc.

Additional information

If you remove the dist/ folder in the API package this resolved the issue.

ahkhanjani commented 1 month ago

Same as #1124