Skip to content

Fix Netlify build failure: bump Node version and sync yarn.lock - #6

Merged
kaovilai merged 1 commit into
mainfrom
copilot/fix-repo-issues
Sep 10, 2026
Merged

kaovilai merged 1 commit into
mainfrom
copilot/fix-repo-issues

Conversation

Copilot AI commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Netlify build failed during yarn install because a transitive dependency required Node 20+ while the build environment was pinned to Node 18:

error brace-expansion@5.0.9: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "18.20.8"

Build environment

  • Bump netlify.toml NODE_VERSION from 18 to 20.
  • Add engines.node: ">=20" to package.json so local/dev tooling matches the build environment.

Lockfile consistency

  • Regenerate yarn.lock — it was stale relative to package.json: the jest dependency tree was missing entirely, and node-fetch was pinned to an unused ^3.3.2 entry despite the code using require("node-fetch"), which only works with the CJS ^2.7.0 line actually declared in package.json.

Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
@kaovilai

kaovilai commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

✅ Deploy Preview for magnificent-crumble-05b541 ready!

Name Link
🔨 Latest commit 9eb6540
🔍 Latest deploy log https://app.netlify.com/projects/magnificent-crumble-05b541/deploys/6aa30f4504c20a00088244ab
😎 Deploy Preview https://deploy-preview-6--magnificent-crumble-05b541.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@kaovilai
kaovilai marked this pull request as ready for review September 10, 2026 20:12
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: c8f18e59-b085-4d18-bf00-a1cd0ef45acd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kaovilai
kaovilai merged commit bd5a75e into main Sep 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants