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

No _ipx folder after nuxt build command #1485

Open
shlomi93 opened this issue Sep 15, 2024 · 3 comments
Open

No _ipx folder after nuxt build command #1485

shlomi93 opened this issue Sep 15, 2024 · 3 comments

Comments

@shlomi93
Copy link

shlomi93 commented Sep 15, 2024

Hello
I'm trying to use NuxtImg without success in my SSR Nuxt3 project.
The following happens in both Windows 10, and Ubuntu 24.04 LTS
i have installed it and in nuxt.config i've added:

modules: [ "@nuxt/image"],

image: {
  domains: [
      "localhost",
      amazonaws S3 bucket address here
  ],
  provider: "ipx",
},

then in a specific component:

<NuxtImg :src='props.imagePath'  :alt="'section ' + props.title" />

[props.imagePath is "/assets/icons/test.webp" for example and it is found inside public folder, so actually public/assets/icons/man.webp]

then I run
nuxt build
and then
node .output/server/index.mjs

when inspecting the image, i can see that the src is /ipx//.... but there is not /_ipx/ dir in .output/ or any of its sub-dirs

why i don't get the ipx folder?

Thanks

@hmingv
Copy link

hmingv commented Sep 18, 2024

Same problem

@CharlesBT
Copy link

CharlesBT commented Sep 18, 2024

same problem with v1.7.0 1.7.1 and 1.8.0, whereas is was working last month with 1.7.1, it seems a dependency has changed under the hood.
I have tested to force sharp 33.4 but it doesn't help

@CharlesBT
Copy link

Adding "ipx": "3.0.1" as devdependencies solveed the issue of prerendering images in the public folder under _ipx BUT doesn't help on images hosted on an external blob storage like Azure Blob,

I don't know why both where working since a while previously, it seems something has changed since the last 3/4 weeks

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

3 participants