This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Working with es6 modules

Comments

5 comments

  • Avatar
    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
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink
  • Avatar
    Tamara Yulevich

    Hi Nicholas,

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

    Thanks,

    Tamara

    1
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink

Post is closed for comments.