Cannot read property 'defineProperty' of undefined #2818
-
I've set up the mesh locally following the basic setup guide. I started facing issues when I wanted to run the server in production. Source used: The After I run The error occurs in the generated After further investigation of the generated file, I noted that the Stripes OAS generated this part of the code as well:
Apparently, the generated file redeclares the I've tested a few other OAS and they successfully generate the My current workaround is removing the 2nd line of the generated code and the server seems to work fine. Is there any way to generate the file using these sources and not having to remove the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think Stripe has an enum type called |
Beta Was this translation helpful? Give feedback.
I think Stripe has an enum type called
Object
so this conflicts with the JavaScript'sObject
. So as a workaround, you can userename
transform to rename that type toStripeObject
;https://www.graphql-mesh.com/docs/transforms/rename