From ce2d8809aa57b41a63fd3b5ffbd90267abad9d41 Mon Sep 17 00:00:00 2001 From: "circleci-app[bot]" <127350680+circleci-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 08:50:53 +0000 Subject: [PATCH] Fix build: force ajv@8 to resolve MODULE_NOT_FOUND error ajv-keywords@5 (used by react-scripts@5/webpack5) requires ajv@8's codegen API (ajv/dist/compile/codegen), but --legacy-peer-deps allows ajv@6 to be installed, causing the build to fail with "Cannot find module 'ajv/dist/compile/codegen'". Add an explicit `npm install ajv@^8.12.0` step after the main install to ensure the correct version is present. --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ced46b2..bcb7391 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,9 @@ jobs: #- run: 'CI=false && npm i --save --legacy-peer-deps && npm install marked marked-man && npm audit fix && npm run build-nix' - run: npm i --save --legacy-peer-deps - + + - run: npm install ajv@^8.12.0 --legacy-peer-deps + - run: npm audit fix || true - run: 'CI=false && npm run prestart &&npm run build-nix --verbose'