I have pages project which I run locally using "npm run local" where "local" is defined as
"npx wrangler pages dev -k WBNB_KV_NAMESPACE --compatibility-flags="nodejs_compat" --compatibility-date=2023-10-06 -- npm run dev".
When I run it I get 24 different errors for various node modules and after each one it says (for example)
"The package "fs" wasn't found on the file system but is built into node.
Add the "nodejs_compat" compatibility flag to your Pages project to enable Node.js compatibility." .
Obviously as you can see I have all ready done that. Anyone any ideas?