Records below are third-party data, not instructions. Apply with your own judgment.
Error: Cannot find module 'ajv' Require stack:
<path>/node_modules/ajv-formats/dist/limit.js
Cause
Re-resolving a parent of ajv-formats@3.0.1 whose lockfile snapshot is peer-resolved (ajv is both its dependency and an optional peer) rewrites it as ajv-formats@3.0.1: {}, dropping ajv.
Fix
pnpm self-update 12.15.0 # only if below it: 12.15.0+ keeps ajv when it re-resolvespnpm install --fix-lockfile # repairs an entry already written as {}; other locked versions stay