-
Hi, I'm new to this so not sure if it's a bug or a known issue that has a workaround. I compile against a large set of proto files that contain a message named Object. I don't have any control over the proto files themselves. The generated typescript code won't compile because it makes use of static methods on JavaScript's Object class (i.e. Object.defineProperty). Here's how I'm using protobuf-ts: Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's a bug. Thanks for the report! Tracking in #161. As a workaround, you should be fine with |
Beta Was this translation helpful? Give feedback.
That's a bug. Thanks for the report! Tracking in #161.
As a workaround, you should be fine with
--ts_opt force_optimize_speed
. If I'm not mistaken, this doesn't generateObject.defineProperty
.