cloudinary icon indicating copy to clipboard operation
cloudinary copied to clipboard

Nuxt3 options not defined

Open jhull opened this issue 4 years ago • 12 comments

Is this module compatible with Nuxt 3?

Using same setup from before I'm now getting this:

 ERROR  Cannot start nuxt:  options is not defined                                                                 19:37:03

  at eval (eval at <anonymous> (node_modules/lodash.template/index.js:1550:12), <anonymous>:9:26)
  at compileTemplate (node_modules/@nuxt/kit/dist/index.mjs:952:45)
  at async node_modules/nuxt3/dist/index.mjs:940:22
  at async Promise.all (index 11)
  at async generateApp (node_modules/nuxt3/dist/index.mjs:939:3)
  at async build (node_modules/nuxt3/dist/index.mjs:977:3)
  at async load (node_modules/nuxi/dist/chunks/dev.mjs:6763:9)
  at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6793:5)
  at async _main (node_modules/nuxi/dist/chunks/index.mjs:417:7)

jhull avatar Oct 13 '21 02:10 jhull

@jhull currently this module is not compatible for Nuxt 3 yet.

mayashavin avatar Oct 21 '21 20:10 mayashavin

Is it planned to make it compatible for Nuxt3?

Zielgestalt avatar Oct 21 '21 20:10 Zielgestalt

Same question as @Zielgestalt!

I'm looking for a Nuxt3 compatible service to resize images.

eMeRiKa13 avatar Dec 11 '21 19:12 eMeRiKa13

Anyone successfully using this with Nuxt3?

dosstx avatar Apr 25 '22 10:04 dosstx

@Zielgestalt @eMeRiKa13 @dosstx I'm planning to have this taken care in next month. Meanwhile if you want to resize images using Cloudinary, there are two options - one is using nuxt-image with cloudinary as the provider :), or Cloudinary URL Builder for optimized and lighter weight package to build image urls :). Let me know if those work for you

mayashavin avatar Apr 27 '22 18:04 mayashavin

@mayashavin thanks! Great news! I think nuxt-image isn't nuxt3 ready, too. But I will give the URL builder a try. Thanks!

Zielgestalt avatar Apr 27 '22 19:04 Zielgestalt

@mayashavin Thanks for the update! I am moving to Nuxt3 now and discovered that the Nuxt Image module is not yet ready for Nuxt3 (though, I understand it is close to being ready). So, we may have 3 options soon: 1.) Nuxt Image 2.) Cloudinary URL builder 3.) Nuxt Cloudinary module

Note: I was using the cloudinary API with Nuxt 2 to delete images and invalidate old caches -- not sure yet how that will work with Nuxt3.

dosstx avatar Apr 27 '22 19:04 dosstx

What are the differences with https://github.com/cloudinary/js-url-gen and https://github.com/cloudinary/frontend-frameworks? It looks like there is a lot of various SDK all over the place. 😅

kissu avatar May 09 '22 00:05 kissu

When will this library be ready for Nuxt3?

Gyurmatag avatar May 23 '22 19:05 Gyurmatag

Hi all, just a related update -- the Nuxt Image Module is now compatible with Nuxt 3. This is another option for integrating Cloudinary with Nuxt3: https://v1.image.nuxtjs.org/getting-started/installation

dosstx avatar Jul 08 '22 11:07 dosstx

What are the differences with https://github.com/cloudinary/js-url-gen and https://github.com/cloudinary/frontend-frameworks? It looks like there is a lot of various SDK all over the place. 😅

depends on what you want to use, these are the new version developed by the SDK team of Cloudinary. If you only want to generate the url for your images then I will suggest to use cloudinary-build-url

mayashavin avatar Jul 13 '22 06:07 mayashavin

When will this library be ready for Nuxt3?

Hopefully soon. I have no free time to look into it yet :(

mayashavin avatar Jul 13 '22 06:07 mayashavin

Good news guys,

A brand new Nuxt 3 version of this module is out for you to test out!

I will close this issue as it is probably out of date.

Please open new issues for the features you would like to see in the stable 2.0.0 version :)

Baroshem avatar Jun 02 '23 11:06 Baroshem

Also, give a try to that one: https://v1.image.nuxtjs.org/providers/cloudinary (even if still in beta)

kissu avatar Jun 07 '23 10:06 kissu