return this.listener.apply(this.target, arguments);
I'm suddenly getting this error in all my builds. I even Retried previous build that were successful (2 weeks ago) and they are all getting this error. I have no idea what's going on.
15 Replies
the build log ends with this
what's odd is that it says Node.js v18.5.0 which I know is old, but this came out of nowhere? my project doesn't say to use, nor does my cloudflare setup
I've had the NODE_VERSION variable in my cloudfllare workers and page settings set to 20.11.1 for weeks now
Same for me. all builds are failing now even when I specify NODE_VERSION = 20.10.0
I have a fix
The same thing that builds weeks ago suddenly cannot build anymore.
oh really?!
it’ll work when you build locally with npm run build & npm run deploy vs pushing to your branch and having the GitHub cloudflare integration do the build
Gotcha. I'll try to configure that locally I guess. I wonder what changed on Cloudflare Pages side though.
do you use the builder qwik sdk by any chance?
if you do it may have something to do with their latest version and isolated-vm
gotcha. No I am not sure I haven't updated my qwik version for probably 6 months.
ah gotcha
out of curiosity - is the env a plaintext env? does converting it to secret and redeploying work?
otherwise note you can set a
.nvmrc
or .node-version
file with just 20.10.0
and that'll also work like the envI have specified NODE_ENV env and .node-version and .nvmrc all to 20.10.0 and the log suggests for some reason it's still trying to build with Node.js v18.5.0.
figured out the issue, it's from qwik plus changes with how cloudflare handles build commands
qwik build runs
- npm run build.types
- npm run build.client
- npm run build.server
- npm run lint
if npm lint returns errors now that stops the node process which causes cloudflare to stop building
So you're right. The framework does this
this throws errors but previously the Pages CI has no issue continuing with the deploy but it seems this behaviour changed maybe last week.
can get around this issue for me though
I do. I have the exact same issue