IPFS helpers does not work with Node JS #111
Replies: 2 comments 9 replies
-
hi @nicolapertosa, Thank you for pointing this wrong behaviour out. |
Beta Was this translation helpful? Give feedback.
-
I faced the same error after testing this helper from a NodeJs back-end. Your pull request #105 was merged and included in the Thank you so much for your help to fix this issue, you are the first external contributor to Ternoa.js 🏆 |
Beta Was this translation helpful? Give feedback.
-
Dear Ternoa developers,
I installed 1.3.0-alpha0 Ternoa-js version because I wanted to test IPFS helpers for collections and NFT's metadata creations.
Actually, I'm using some Ternoa features in the back-end running with NodeJs and during invocation of collectionIpfsUpload, I get the following error message :
ReferenceError: FormData is not defined
in ternoa-js/helpers/ifps.jsIn fact, FormData is native to the browser but not known in Node js and because there is no third party library imported in the ipfs helper to manage Files creation, it failes.
Could you please consider my request by using npm form-data dependency to avoid this error when using ipfs helpers with node JS.
https://www.npmjs.com/package/form-data
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions