Comments (5)
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.
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.
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.
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.
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)
- Include trimOffsetRight & trimOffsetBottom HOT 2
- Add settings for symmetric .trim() HOT 1
- Enhancement: ensure metadata.background is compatible with color package for single-channel images HOT 3
- Animated Gif from raw buffer HOT 1
- Animated gif from raw buffer? HOT 2
- When loading a picture using a file path, the size of the picture exceeds a certain size, and then deleting the picture will cause a problem of prohibiting deletion. HOT 2
- Using node js sharp package composite function is not giving an animated result HOT 4
- `0.33.3` Throws `TypeError: A string was expected` HOT 11
- Issue with Color Consistency in CMYK Space When Using "Composite" in Sharp HOT 2
- Docs: add section with suggestions relating to security (includes relaxing defaults for trusted input) HOT 1
- When does one need to install `@img/sharp-libvips-dev`? HOT 1
- Strip EXIF data but keep original image unmodified HOT 2
- HELP, error in sharp. node js HOT 1
- How to set JFIF with jpg format HOT 2
- how to display tif image on the UI screen
- SharpJS not installing on Vercel anymore (it used to) HOT 1
- Get error "extract_area: bad extract area" when second extract call in toBuffer() HOT 1
- Install within Docker & PNPM HOT 3
- Error: Input buffer contains unsupported image format on image.metadata() HOT 1
- Width and height swapped in iOS photos HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharp.