-
Notifications
You must be signed in to change notification settings - Fork 150
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
tRPC or Hono RPC - Can't import types from Deno folder (server) to Node folder (client) #1084
Comments
Try removing {
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"]
}
} |
Try adding the following to your "unstable": ["byonm"] |
Doesn't helps Situation same as before, - some types are 'any' - Hono<any, any, any> and deno-ts(2344) I can publish test projects (Hono RPC and tRPC), if it helps |
@ds315 You'll have to push to a repo or create a smaller reproduction that I can pull so I can figure out what's wrong. |
I'd published both Hono RPC and tRPC - https://github.com/ds315/trpc and https://github.com/ds315/hono Both works good, only problem with types in Client in VS Code |
I believe this was the same issue as denoland/deno#24293. Ensure the part of your program using hono doesn't include or import any code importing react, and have them in different |
Describe the bug
Can't import types from Deno folder (server) to Node folder (client).
To Reproduce
I made Deno + Hono server, export type of router from server and enable Deno Language Server for whole project (client and server). Types successfully import's in client, but alot of errors appears.
I enable Deno Language Server only for server folder. Types to router disappear's in client folder.
I tried to put import to separate file and enable Deno Language Server to it. It doesn't helps.
Expected behavior
Is that possible to Deno Language Server can work with Node projects ?
When enable Deno Language Server, it disables VS Codes Language Server. (it's clear)
As I understand, it's like - [Feature Request] Support multiple types of projects in the same repository #488 in Q4 roadmap ?
Versions
vscode: 1.87.0, deno: 1.40.5, extension: 3.33.3
The text was updated successfully, but these errors were encountered: