The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
error when starting dev server:
Error: Could not load the "sharp" module using the win32-x64 runtime
Possible solutions:
- Add platform-specific dependencies:
npm install --os=win32 --cpu=x64 sharp
or
npm install --force @img/sharp-win32-x64 - Consult the installation documentation: https://sharp.pixelplumbing.com/install
at Object.<anonymous> (D:\Coding\personal\akiradev\node_modules.pnpm\[email protected]\node_modules\sharp\lib\sharp.js:85:9)
at Module._compile (node:internal/modules/cjs/loader:1267:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1321:10)
at Module.load (node:internal/modules/cjs/loader:1125:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at Module.require (node:internal/modules/cjs/loader:1149:19)
at require (node:internal/modules/helpers:121:18)
at Object.<anonymous> (D:\Coding\personal\akiradev\node_modules.pnpm\[email protected]\node_modules\sharp\lib\constructor.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1267:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1321:10)
ELIFECYCLE Command failed with exit code 1.
brand new project i cant seem to figure out how to fix the sharp error