Update Node.js to v20 and fix lint command for Next.js 16 compatibility - #105
Conversation
Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com>
Deploying chartimpact with
|
| Latest commit: |
07b977c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a6fa9b72.chartimpact.pages.dev |
| Branch Preview URL: | https://copilot-sub-pr-104.chartimpact.pages.dev |
|
@copilot review this new error in the same pipelines
Invalid project directory provided, no such directory: /home/runner/work/ChartImpact/ChartImpact/frontend/lint` |
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot We are also facing this error in cloudflare pages `
` |
Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com>
Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com>
Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com>
Fixed in commit 07b977c. Updated the |
|
b566144
into
snyk-fix-8d156fcd1018c01abb3a73b896c7eb50
* fix: frontend/package.json & frontend/package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-NEXT-15105315 * Update Node.js to v20 and fix lint command for Next.js 16 compatibility (#105) * Initial plan * Update Node.js version to 20 for Next.js 16 compatibility Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Fix lint command for Next.js 16 - use ESLint directly Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Use modern glob pattern for ESLint command Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Update Node.js to v20 for Cloudflare Pages deployment Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Configure Next.js 16 compatibility: Node.js 20 and TypeScript settings (#106) * Initial plan * Update tsconfig.json for Next.js 16 compatibility Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>



Next.js 16 requires Node.js >=20.9.0 and removed the
next lintCLI command. CI workflows, Cloudflare Pages, and package configuration were still using Node.js 18 and the deprecated lint command, causing pipeline and deployment failures.Changes:
.github/workflows/ci.yml,.github/workflows/frontend-tests.yml) to use Node.js 20frontend/package.jsonengines field to require Node.js >=20.9.0frontend/package.jsonto use ESLint directly with modern glob patterns (eslint "**/*.{js,jsx,ts,tsx}") instead of the removednext lintcommandfrontend/.node-versionfrom 18 to 20 for Cloudflare Pages deployment compatibilityfrontend/CLOUDFLARE_PAGES.mddocumentation to reflect Node.js 20 requirementModified workflows:
ci.yml: test-frontend, build-frontend jobsfrontend-tests.yml: unit-tests, integration-tests, regression-check jobsModified deployment configuration:
.node-version: Updated to Node.js 20 for Cloudflare Pages builds💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.