Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can no longer import runtime providers (in 1.8.0) #1474

Open
remihuigen opened this issue Sep 6, 2024 · 0 comments
Open

Can no longer import runtime providers (in 1.8.0) #1474

remihuigen opened this issue Sep 6, 2024 · 0 comments

Comments

@remihuigen
Copy link

remihuigen commented Sep 6, 2024

I was using this configuration, which broke in v1.8.0, since @nuxt/image/dist/runtime/providers/cloudinary is no longer found.

image: {
    provider: 'cloudinary',
    cloudinary: {
      baseURL: baseConfig.api.cloudinary + '/image/upload/',
      modifiers: {
        quality: '80',
      }
    },
    providers: {
        video: {
            provider: '@nuxt/image/dist/runtime/providers/cloudinary',
            options: {
                baseURL: baseConfig.api.cloudinary + '/video/upload/'
            }
        }
    }
  }
Pre-transform error: Failed to resolve import "/Users/remihuigen/local-projects/clients-onderwijsin/onderwijsin-nuxt/@nuxt/image/dist/runtime/providers/cloudinary" from "virtual:nuxt:/Users/remihuigen/local-projects/clients-onderwijsin/onderwijsin-nuxt/.nuxt/image-options.mjs". Does the file exist?  

Up until 1.7.0 this worked fine

Basically, what I'm trying to achieve is having an alt cloudinary provider with /video/upload/ in it's baseUrl, so I can use images for video files by using the alternate provider.

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant