zankhq / astro-starter

Astro starter template
https://astrostarter.zank.studio
MIT License
55 stars 8 forks source link

pnpm build causes issue with Sharp #27

Closed Divinely5782 closed 2 months ago

Divinely5782 commented 2 months ago

Error: Could not load the "sharp" module using the win32-x64 runtime.

I cant build project, because of rhis error. Does build process work on your machine?

zanhk commented 2 months ago

Hi, should be fixed now,

try

bun install

bun run dev

Divinely5782 commented 2 months ago

So the only solution is to use bun? 😯

I started Astro project from scratch and sharp builds everything fine.

zanhk commented 2 months ago

no, you should be able to use npm or pnpm as well

zanhk commented 2 months ago

Just tested and can confirm it works with npm