Skip to main content

Working with es6 modules

Comments

5 comments

  • Tia Esguerra

    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
  • Tia Esguerra

    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
  • Tamara Yulevich

    Hi Nicholas,

    If you have any further questions or run into any issues please let us know.

    Thanks,

    Tamara

    1
  • Nicholas Orth

    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
  • Nicholas Orth

    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

Post is closed for comments.