Skip to content

npm install fails due to RegExpIndicesArray issue #2603

@SignpostMarv

Description

@SignpostMarv

The version of Ajv you are using

142ce84

Operating system and node.js version

Ubuntu, Node 22

Package manager and its version

npm 10.9.7

Link to (or contents of) package.json

Error messages

$ npm install

> ajv@8.18.0 prepublish
> npm run build

> ajv@8.18.0 build
> rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts

node_modules/re2/re2.d.ts:11:15 - error TS2304: Cannot find name 'RegExpIndicesArray'.

11     indices?: RegExpIndicesArray;
                 ~~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/re2/re2.d.ts:11

The output of npm ls

npm ls
ajv@8.18.0 /app
├── @ajv-validator/config@0.5.0
├── @rollup/plugin-commonjs@25.0.8
├── @rollup/plugin-json@6.1.0
├── @rollup/plugin-node-resolve@15.3.1
├── @rollup/plugin-typescript@11.1.6
├── @types/chai@4.3.20
├── @types/mocha@10.0.10
├── @types/node@20.19.39
├── @types/require-from-string@1.2.3
├── @typescript-eslint/eslint-plugin@7.18.0
├── @typescript-eslint/parser@7.18.0
├── ajv-formats@3.0.1
├── browserify@17.0.1
├── chai@4.5.0
├── cross-env@7.0.3
├── dayjs-plugin-utc@0.1.2
├── dayjs@1.11.20
├── eslint-config-prettier@9.1.2
├── eslint@8.57.1
├── fast-deep-equal@3.1.3
├── fast-uri@3.1.0
├── glob@10.5.0
├── husky@9.1.7
├── if-node-version@1.1.1
├── jimp@0.22.12
├── js-beautify@1.15.4
├── json-schema-test@2.0.0
├── json-schema-traverse@1.0.0
├── karma-chrome-launcher@3.2.0
├── karma-mocha@2.0.1
├── karma@6.4.4
├── lint-staged@15.5.2
├── mocha@10.8.2
├── module-from-string@3.3.1
├── node-fetch@3.3.2
├── nyc@15.1.0
├── prettier@3.0.3
├── re2@1.24.0
├── require-from-string@2.0.2
├── rollup-plugin-terser@7.0.2
├── rollup@2.80.0
├── ts-node@10.9.2
├── tsify@5.0.4
├── typescript@5.3.3
└── uri-js@4.4.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions