You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gurleensethi
changed the title
[BUG] Upgrading to v2 buf generates an import statement for JavaScript/Typescript generate that doesn't exist.
[BUG] Upgrading to v2 buf generates an import statement for JavaScript/Typescript that doesn't exist.
Sep 14, 2024
You import buf/validate/validate.proto to set validation options.
Version 1 of buf.build/bufbuild/es does not support the custom options, and ignores the import.
Version 2 however does support them, and generates the import for ../buf/validate/validate_pb.
By default buf generate does not generate code for imports to module dependencies, so the file does not exist.
The solution for this issue is to add include_imports: true to the plugin config (see docs) - but since we haven't finished updating Connect yet, the code would fail to work.
Description
One of the generated import statement:
I get the error:
buf.yaml
file:buf.gen.yaml
file:Steps to Reproduce
Expected Behavior
Actual Behavior
Screenshots/Logs
Environment
Possible Solution
Additional Context
The text was updated successfully, but these errors were encountered: