Nextjs setup with cloudflare issue of "sharp" dependency !
Unanswered
Gray Vireo posted this in #help-forum
Gray VireoOP
After wasting my one day on the issue of setup a nextjs with cloudflare I come here for the solution when ever i run
Do any body have a solution for this issue.
pnpm preview then everything was going good untile the sharp error happenX [ERROR] Could not resolve require("../src/build/Release/sharp-*-*.node") node_modules/.pnpm/sharp@0.35.3_@types+node@20.19.43/node_modules/sharp/dist/sharp.cjs:25:18:25 │ sharp =require(../src/build/Release/sharp-${runtimePlatform}-${version}.node);X [ERROR] Could not resolve require("../src/build/Release/sharp-wasm32-*.node")node_modules/.pnpm/sharp@0.35.3_@types+node@20.19.43/node_modules/sharp/dist/sharp.cjs:31:20:31 │ sharp = require(../src/build/Release/sharp-wasm32-${version}.node);X [ERROR] No loader is configured for ".node" files: node_modules/.pnpm/@img+sharp-win32-x64@0.35.3/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64-0.35.3.nodenode_modules/.pnpm/@img+sharp-win32-x64@0.35.3/node_modules/@img/sharp-win32-x64/index.cjs:1:25:1 │ module.exports = require('./lib/sharp-win32-x64-0.35.3.node');Do any body have a solution for this issue.
1 Reply
Update your node version