I am getting a lot of errors when running the npm run build. My site is based off an official template.
using Astro 2, node v16.19.1
I tried the following options to triage the issue:
a. changed the node versions using nvm, but now pegged to latest v16.19.1 lts/gallium release
I could not use v18 as cloudflare build fails with node 18.
b. Did a diff of all the changes from the original template and my current project, to rule out any disruptive changes.
c. Validated the original template has no issues with npm run build on lts/gallium
The major change is the cloudflare integration and the changes in the package and package-lock files.
If anyone can offer any guidance, I would really appreciate it.