Closed slwhitman closed 10 months ago
Thanks for opening an issue @slwhitman, Could you please provide more info on how we can replicate this issue on our environment? Could you please share a simple repo that has this issue with the detailed steps?
And could you try with web3.js version 4?
Thanks,
Sure thing, check this repo https://github.com/slwhitman/web3Problem.git
Should be able to reproduce the problem with both web3@1.3.0 and web3@4.2.1
Windows 11, VS Code 1.83.1, Node 16.20.0, npm 8.16.4, yarn 1.22.19
See package.json for other core libs and environment
Hello ! I have the same issue. Did you fix it ? If yes, can you explain ? Thanks
Hi, I am having the same problem! I am having the same problem . If you have fixed it, could you please let me know? Thanks.
I eventually migrated to ethers.js. Couldn't fix this issue.
Thanks for the reply. I upgraded the TypeScript version and it resolved the issue. It may be similar to this problem. https://github.com/web3/web3.js/issues/6642
So the issue was with Typescript compiler. I am closing this issue. However, if someone faced the same and could not resolve this issue by upgrading the Typescript version or fixing its configuration, please re-open the issue and provide more information to reproduce the exact issue on our machines or on a Cloud IDE. So, preferably share a github repository or, better, a link on a Cloud IDE like https://codesandbox.io/. Thanks,
Expected behavior
Program and npm library compiles without issue
Actual behavior
Compiler errors with TypeScript error in node_modules/web3-eth-accounts/lib/commonjs/tx/transactionFactory.d.ts(8,81): ',' expected. TS1005
See logs below....
Steps to reproduce the behavior
This error in not present on local build, only within the CircleCI build.
Note presence of artifact
<unknown>
in the compiled library transactionFactory.d.ts(8,81)Logs
Environment
CircleCI Docker cimg/node:16.20.0 Node v16.20.0 npm v8.19.4 "typescript": "4.1.6" "web3": "1.3.0", "web3-eth-accounts": "^4.1.0" Windows 11OS