-
Notifications
You must be signed in to change notification settings - Fork 507
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
Buffer got wrong value when "downlevelIteration":"true" in tsconfig.json #760
Comments
Looks like a duplicate of #659 and #376 . There's a few workarounds mentioned there as well. As a permanent fix for this, I think we want to turn off |
So I looked into changing First use of
|
Current Behavior
$ tsdx create
->basic
Node.js Buffer object with spread operator has wrong value.
tsconfig.json
Expected behavior
Got value Buffer <[1,2,3,4,5,6]>
Suggested solution(s)
might be rollup config. because below
tsconfig.js
withouttsdx
transpiled and got values correctly. so at least it should not be typescript bug.I avoid using spread operator
...
on Buffer. Switch to...Buffer.from([1,2,3]).toJSON().data
for now as workaround.below
tsconfig.json
with typescript Version 3.9.6 worksAdditional context
Your environment
tsdx create
->basic
The text was updated successfully, but these errors were encountered: