Skip to content
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

Module parse failed: Unexpected token (109:43) const transactionRange = body.utilPrng?.range #1338

Closed
SarjuHansaliya opened this issue Nov 28, 2022 · 3 comments · Fixed by #1339
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SarjuHansaliya
Copy link

SarjuHansaliya commented Nov 28, 2022

Description

After version 2.18.5, I have started getting issue

./node_modules/@hethers/wallet/node_modules/@hashgraph/sdk/src/PrngTransaction.js 109:43
Module parse failed: Unexpected token (109:43)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|     const body = /** @type {HashgraphProto.proto.ITransactionBody} */
|     bodies[0];
>     const transactionRange = body.utilPrng?.range;
|     return Transaction._fromProtobufTransactions(new PrngTransaction({
|       range: transactionRange

I think due to ?. Javascript is throwing this error while starting app. When I looked into it more, it looks like introduced in this PR #1302

Steps to reproduce

  1. clone https://github.com/SarjuHansaliya/testing_hedera_sdk
  2. do yarn
  3. run yarn start

Additional context

No response

Hedera network

testnet

Version

2.18.5

Operating system

No response

@SarjuHansaliya SarjuHansaliya added the bug Something isn't working label Nov 28, 2022
@ochikov ochikov self-assigned this Nov 28, 2022
@ochikov
Copy link
Contributor

ochikov commented Nov 28, 2022

Hello @SarjuHansaliya. We are going to investigate it. We will keep you updated.

@ochikov
Copy link
Contributor

ochikov commented Nov 28, 2022

You can test the new version v2.19.0.

@SarjuHansaliya
Copy link
Author

Thank you @ochikov for quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants