javascript-sdk icon indicating copy to clipboard operation
javascript-sdk copied to clipboard

TypeError: _binance_chain_javascript_sdk__WEBPACK_IMPORTED_MODULE_0__.TokenManagement is not a constructor

Open roy1210 opened this issue 5 years ago • 0 comments

Hi team!

I have updated "@binance-chain/javascript-sdk" ver v3 (3.0.2) to ver v4 (4.1.1). However, it looks like TokenManagement is not able to import correctly. I have tried both import {TokenManagement} from '@binance-chain/javascript-sdk'; and import TokenManagement from '@binance-chain/javascript-sdk';.

Kindly help to check below code in gist and advise :D https://gist.github.com/roy1210/ceb0037289a99c2006ddd1f50246b23c#file-gistfile1-txt-L29

Thank you.

=Version= "node": 10.16.3 (Tried on 12.18.3 and 14.6.0 too) "@binance-chain/javascript-sdk": "^4.1.1", "react": "^16.13.1", "react-dom": "^16.13.1", "react-scripts": "^3.4.3",

Screenshot 2020-09-05 at 12 06 30 PM

roy1210 avatar Sep 05 '20 04:09 roy1210