Skip to content

RangeError: Map maximum size exceeded #2204

@AndreyTheWeb

Description

@AndreyTheWeb

💥 Regression Report

When I upgraded from v22.4.9 to v"23.11.5, the following error occurred when compiling tsc.

> tsc -p tsconfig.base.json --noEmit --pretty --incremental true --tsBuildInfoFile .cache/ts_lint
/builds/my-path/node_modules/typescript/lib/tsc.js:118651
      throw e;
      ^
RangeError: Map maximum size exceeded
    at Map.set (<anonymous>)
    at checkTypeRelatedTo (/builds/my-path/node_modules/typescript/lib/tsc.js:610[46](https://ci.unitedline.net/my-path/-/jobs/3004328#L46):16)
    at isTypeRelatedTo (/builds/my-path/node_modules/typescript/lib/tsc.js:60967:14)
    at isTypeSubtypeOf (/builds/my-path/node_modules/typescript/lib/tsc.js:600[48](https://ci.unitedline.net/my-path/-/jobs/3004328#L48):12)
    at extractRedundantTemplateLiterals (/builds/my-path/node_modules/typescript/lib/tsc.js:57899:13)
    at getIntersectionType (/builds/my-path/node_modules/typescript/lib/tsc.js:57970:127)
    at getCrossProductIntersections (/builds/my-path/node_modules/typescript/lib/tsc.js:58069:17)
    at getIntersectionType (/builds/my-path/node_modules/typescript/lib/tsc.js:58031:32)
    at instantiateTypeWorker (/builds/my-path/node_modules/typescript/lib/tsc.js:59884:106)
    at instantiateTypeWithAlias (/builds/my-path/node_modules/typescript/lib/tsc.js:598[51](https://ci.unitedline.net/my-path/-/jobs/3004328#L51):20)
Node.js v20.11.0

Last working version

Worked up to version: v23.3.0

Stopped working in version: after v23.3.0

To Reproduce

Steps to reproduce the behavior:

// Paste your code here

Expected behavior

A clear and concise description of what you expected to happen.

// Paste the results here

Your Environment

  • runtime version: node v20.11.0
  • i18next version: 23.11.5
  • os: Mac, Linux(ubuntu latest on gitlab pipelined)

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