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

Why is the codegen importing a js file instead of a ts file? #500

Closed
unicomp23 opened this issue Feb 28, 2023 · 5 comments
Closed

Why is the codegen importing a js file instead of a ts file? #500

unicomp23 opened this issue Feb 28, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@unicomp23
Copy link

Require stack:
  proto/gen/devinternal_connect.ts
  src/connect/connect.ts
  src/connect/server.test.ts

  4 | // @ts-nocheck
  5 |
> 6 | import { GetDeltasRequest, GetDeltasResponse, GetSnapshotResponse, Path, UpsertRequest } from "./devinternal_pb.js";
    | ^
  7 | import { Empty, MethodKind } from "@bufbuild/protobuf";
  8 |
  9 | /**
@unicomp23 unicomp23 added the bug Something isn't working label Feb 28, 2023
@unicomp23
Copy link
Author

should it be asking for devinternal_pb.js instead?

@unicomp23
Copy link
Author

I tried to pass import_extensionjs flag in buf opt(s), wouldn't let me.

@unicomp23
Copy link
Author

@timostamm should I use twirp in the meantime?

@unicomp23
Copy link
Author

doh, nevermind. I had a space in the opt list. It works now, good2go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant