Git Product home page Git Product logo

Comments (5)

lovell avatar lovell commented on May 28, 2024 1

No loader is configured for ".node" files

It looks like you're using some form of code bundler, please see https://sharp.pixelplumbing.com/install#bundlers

I am not using latest version because it breaks my deployment on Vercel. Instead, I am using version 0.32.6 as a workaround that was suggested by multiple people

This was due to a bug in Next.js - please upgrade to Next.js version 14.1.0 or later.

from sharp.

rochajulian avatar rochajulian commented on May 28, 2024

No loader is configured for ".node" files

It looks like you're using some form of code bundler, please see https://sharp.pixelplumbing.com/install#bundlers

I am not using latest version because it breaks my deployment on Vercel. Instead, I am using version 0.32.6 as a workaround that was suggested by multiple people

This was due to a bug in Next.js - please upgrade to Next.js version 14.1.0 or later.

Hi lovell! Thanks for your response. I am using Astro.js but don't have any Vite file (which is the bundler that i think that Astro is using. How do i go about this? I'm a little new to this stuff so any help and direction i can get is great.

In regards to your second comment about upgrading Next.js, how and why would I do that since I am on Astro? Or is there an Astro-specific fix instead?

Thanks again for your help.

from sharp.

lovell avatar lovell commented on May 28, 2024

Sorry, I saw Vercel and misinterpreted your initial comment as relating to Next.js. 😅

My understanding of Astro is that it bundles sharp for you and should "just work".

Are you trying to do something extra with sharp beyond Astro's built-in image optimisation? If so, Astro exposes the underlying Vite config at https://docs.astro.build/en/reference/configuration-reference/#vite so the info at https://sharp.pixelplumbing.com/install#vite should help.

from sharp.

rochajulian avatar rochajulian commented on May 28, 2024

Hey, as an update:

Still no luck on this so I've submitted an issue on Astro's repo for this. withastro/astro#10297

In that issue submission, I created a minimum reproduction of the issue with a public link to the repo and a public link to it hosted on Vercel.

Hopefully we're able to get a solution.

from sharp.

lovell avatar lovell commented on May 28, 2024

I agree with the comments on withastro/astro#10297 that this will be due to an out-of-date version of @vercel/nft. I'll close this issue and we can track the required change to Astro at withastro/astro#10297

from sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.