-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dancingfrog not sure if this change is needed, need more info.
- How are you using js-ipfs? In browser? Node? Electron?
- How are you building it?
I'm guessing you did not follow the link to the comment. Otherwise you are saying that this typo on line 75 of
|
Hm.. iiuc Click to see use of ?. in js-ipfs codebase
That is why I ask how you are using and building this code, because it looks like a problem with your build setup or the way we support TS, not the ipfs-http-gateway code itself. |
Thanks for explaining, @lidel
So, in spite of the To answer your question, yes, I'm using Node to call this function, which works as soon as you remove the part of the syntax that is invalid JavaScript. TypeScript files usually use a |
After spending more time going through |
This is not a TypeScript project, you are quite right. The optional chaining operator is available in JavaScript, but it is only supported by node 14+. Are you using an older version? |
Yup, v12.19.0
I guess it would help you out if Node version were a parameter of the issue
report template. So, basically js-ipfs supports ECMAScript 2020 at
*minimum*?
I think that should be boldly stated in some early and prominent section of
the documentation.
Peace & Love,
John ❤
…On Tue, Nov 9, 2021, 3:14 AM Alex Potsides ***@***.***> wrote:
This is not a TypeScript project, you are quite right. The optional
chaining
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining>
operator is available in JavaScript, but it is only supported by node 14+.
Are you using an older version?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#3918 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC6N3X3K4QSVNPCAUDEOMDLULDJ6FANCNFSM5F2S6VNA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
See comment on #3607 (comment)