Working with es6 modules
how to convert succesfully from commenjs:
-
I hope we get some insight here. I have a project I did in ES6 modules and cannot find anything online about cloudinary support for ES6 Module syntax.
0 -
Hi Nicholas,
I have reached out to our SDK team and asked if they plan to offer the Node SDK in ES6 format. I will let you know what they say.
Kind Regards,
Tia
1 -
Hi Nicholas,
There is nothing in our code that would prevent you from using ES6 syntax. Instead of using `require`, you can use:
import * as Cloudinary from 'cloudinary'
Can you clarify for me if you have tried ES6 syntax and it is not working for you?
Kind Regards,
Tia
1 -
Hi Tia,
Thank you for your follow up on this. I attempted to use "import cloudinary from 'cloudinary'".
Perhaps I should try the syntax you described above, and report back if I am still unable to make a request.
Thanks Tia!
0 -
Hi Nicholas,
If you have any further questions or run into any issues please let us know.
Thanks,
Tamara
1
Post is closed for comments.
Comments
5 comments