Build failing because of NodeJS Compatibility

Hi there!

I'm getting the following error during build:
Add the "nodejs_compat" compatibility flag to your Pages project to enable Node.js compatibility.


I've tried adding
nodejs_compat
in "Settings/Functions/Compatibility flags" but to no avail.

I've also tried adding a functions/wrangler.toml but it does not seem to have an effect.

Any other things I could try? I've read the docs thrice but have not found anything and feel a bit lost.
Was this page helpful?