Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

## Provide environment information #5289

Closed
1 task
Umbrella-Pad opened this issue Jan 9, 2024 · 3 comments
Closed
1 task

## Provide environment information #5289

Umbrella-Pad opened this issue Jan 9, 2024 · 3 comments
Labels
👻 invalid Invalid bug report ⏮ needs reproduction Help us help you - make a failing test

Comments

@Umbrella-Pad
Copy link

Umbrella-Pad commented Jan 9, 2024

Provide environment information

System:
    OS: OSe 12.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 131.52 MB / 32.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 18.8.0 - ~/agent.local/share/nvm/v18.8.0/bin/node
    Yarn: 1.22.19 - ~/.local/share/nvm/v18.8.0/bin/yarn
    npm: 8.18.0 - ~/agent.local/share/nvm/v18.8.0/bin/npm
  Browsers:
    Chrome: 106.0.5249.103
    Firefox: 105.0.2
    Safari: 15.3
  npmPackages:
    @trpc/issue: ^10.0.0-proxy-beta.17 => 10.0.0-proxy-beta.17

Describe the bug

Typescript can't complete the typing of a query, see discussion #2963

image
Property 'subscribe' does not exist on type 'DecoratedProcedureRecord<unknown, BuildProcedure<"subscription", { _config: RootConfig<{ ctx: {}; meta: {}; errorShape: never; transformer: CombinedDataTransformer; }>; _ctx_out: {}; _input_in: unique symbol; _input_out: unique symbol; _output_in: u nique symbol; _output_out: unique symbol; _meta: {}; }, Observable<....'.

Link to reproduction

https://github.com/Lilja/trpc-v10-server-needed

To reproduce

Open up src/index.ts and modify the type {AppRouter} import, point it to the trpc repo OR a another router.

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd be down to file a PR fixing this bug!

Post_Originally posted by @Lilja in #2973_

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
@juliusmarminge
Copy link
Member

juliusmarminge commented Jan 9, 2024

repo doesn't exist, but I can imagine it might be related to versions, since you are on an early beta of v10 and you're pointing to a router which is using the latest version of trpc

@juliusmarminge juliusmarminge added 👻 invalid Invalid bug report ⏮ needs reproduction Help us help you - make a failing test labels Jan 9, 2024
@KATT
Copy link
Member

KATT commented Jan 10, 2024

Hey there @Umbrella-Pad 👋

We appreciate you taking the time to report this issue.

Unfortunately, we don't have the capacity to assist with issues without a reproduction repository and this issue does not seem to be related to tRPC itself.

For effective assistance, reopening the issue with a reproduction repository would be immensely helpful. Alternatively, you can try to get help on our Discord or in GitHub Discussions.

Thank you for your understanding and cooperation!

@KATT KATT closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
Copy link

This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
👻 invalid Invalid bug report ⏮ needs reproduction Help us help you - make a failing test
Projects
None yet
Development

No branches or pull requests

3 participants