-
Notifications
You must be signed in to change notification settings - Fork 463
Unable to use EOSJS in a Typescript Project #530
Comments
Ok, I've managed to get the build to work, but it'd be good to document how I did it.
So, to fix:
Would this be best documented in the Readme? Happy to do a PR. |
Including the |
^ I created the pull request. |
Documented in #568 |
Version of EOSJS
v20.0.0
Describe the bug
I'm trying to build a Typescript module which users can use to help test their smart contracts. This declares EOSJS as a peer dependency (and dev dependency)
To Reproduce
Steps to reproduce the behavior:
Api
from EosJS in a Typescript project.tsc
.Expected behavior
Build succeeds
Build Output
Desktop (please complete the following information):
Additional context
I can see in the source file that TextEncoder and TextDecoder types seem to be global. Shouldn't they be imported from somewhere else as usual? I didn't dig much farther.
Not sure if this is related to #457 or not as there's no context in that issue about what the build problem actually was.
The text was updated successfully, but these errors were encountered: