-
Notifications
You must be signed in to change notification settings - Fork 198
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
Unable to use with TypeScript #34
Comments
Thanks for report @bushev ! would you be able to make a simple repo ready to reproduce issue? |
Hey Andrey, please, check it out: https://github.com/bushev/json-bigint/tree/master/issue |
hm, the problem is in a way how webpack bundles If I replace first line in stringify.js to Not sure yet how to solve this for both node and webpack consumers |
I did a simple fix based on the details you provided. It works well for me - bushev@e3e93f7 |
Any updates on this? |
Another solution that works with the usage of
|
i have this issue too , error: BigNumber is not a constructor |
Same issue. |
For now you can use |
Unfortunately I still get the error when using this solution in AWS Lambda
|
The fix fixed the issue. When will you update the npm version? |
Good brother, when will you update the npm version? |
Confirmed that bushev@e3e93f7 fixes this issue for me. I published a fork with the fixes: https://www.npmjs.com/package/@toniq-labs/json-bigint |
I am experiencing the same issue, with Javascript, Node 22.x and Webpack in serialize method. Unfortunately the fork from @electrovir doesn't work either.
at this line:
|
Hi,
The module is great! But I can't use it with a TypeScript Lambda function on AWS. It fails in runtime with error:
My tsconfig.json is
The text was updated successfully, but these errors were encountered: