Unable to build Next.js app

So i am facing this issue
You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0" is required.
You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0" is required.
But looking at this shows that the Nodejs version cloudflare is running is lower and needs and upgrade to be able to work with the latest Nextjs version. Any suggestions on how can i tackle this without downgrading my Next js app Thanks
4 Replies
Shadow Gaming
Shadow Gaming4mo ago
set a variable NODE_VERSION: (version you want) try it
ANIKET
ANIKETOP4mo ago
Okay
mr nooli
mr nooli3mo ago
I've tried this also - but it's not working.
Erik
Erik3mo ago
I added a node version to wrangler
[vars]
NODE_VERSION = "18.18.0"
[vars]
NODE_VERSION = "18.18.0"

Did you find this page helpful?