Skip to content

type-declaration-immutability: RangeError: Maximum call stack size exceeded #767

Closed
RebeccaStevens/is-immutable-type
#395
@cs4inctec

Description

@cs4inctec

Bug Report

while updating from v5 to v6, rule type-declaration-immutability now throws an error RangeError: Maximum call stack size exceeded

looks similar to #733

Expected behavior

eslint terminates

Actual behavior

throws error

ESLint: 8.56.0

RangeError: Maximum call stack size exceeded
Occurred while linting /home/jenkins_home/workspace/ing-services_Lint_eslint-updates/accounts-wrapper/users/types.ts:26
Rule: "functional/type-declaration-immutability"
    at Object.isIntrinsicErrorType (/home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/ts-api-utils/lib/index.cjs:140:25)
    at Object.get [as isIntrinsicErrorType] (/home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/ts-api-utils/lib/index.cjs:16:45)
    at getTypeData (/home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/is-immutable-type/dist/index.cjs:301:20)
    at /home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/is-immutable-type/dist/index.cjs:248:15
    at Array.map (<anonymous>)
    at typeArgumentsToString (/home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/is-immutable-type/dist/index.cjs:245:47)
    at TypeName.getNameWithArguments (/home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/is-immutable-type/dist/index.cjs:171:54)
    at /home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/is-immutable-type/dist/index.cjs:253:26
    at Array.map (<anonymous>)
    at typeArgumentsToString (/home/jenkins_home/workspace/ing-services_Lint_eslint-updates/node_modules/is-immutable-type/dist/index.cjs:245:47)
script returned exit code 2

Steps to reproduce

Proposed changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Investigation NeededIssue need to be investigated further.Type: BugInconsistencies or issues which will cause a problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions