Closed as not planned
Description
π Search Terms
ts2742, inferred type, bufbuild, protobuf, es, proto3
π Version & Regression Information
- This changed between versions 5.6.3 and 5.7.x
β― Playground Link
No response
π» Code
π Actual behavior
When using proto files with enums generated with @bufbuild/protoc-gen-es we've got this error on project build with typescript 5.7.x.
error TS2742: The inferred type of 'Price' cannot be named without a reference to '../../../../node_modules/@bufbuild/protobuf/dist/esm/private/enum.js'. This is likely not portable. A type annotation is necessary.
58 export const Price = /*@__PURE__*/ proto3.makeEnum(
~~~~~
π Expected behavior
Project builds successfull with TypeScript <= 5.6.3.
Additional information about the issue
No response