Skip to content

cli-plugin-typescript: RangeError: Maximum call stack size exceeded #2019

Closed
@justinkames

Description

@justinkames

Version

@vue/[email protected]
@vue/[email protected]

Node and OS info

node v9.30, npm 6.2.0, macosx high sierra

Steps to reproduce

I initially had a vue-cli project 3.0 with default settings ( babel ). I added typescript support with this command : vue add @vue/typescript. It converted all my .js files to .ts files. This worked as expected. However when running or vue-cli-service build i get an error: RangeError: Maximum call stack size exceeded. I'm not able to build the project, it is stuck. vue-cli-service serve does work properly. How can I debug this?

What is expected?

For vue-cli-service build to work properly.

What is actually happening?

> vue-cli-service build


⠙  Building for production...Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
⠧  Building for production.../Users/user/Documents/app/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:22
        throw error;
        ^

RangeError: Maximum call stack size exceeded
    at compareComparableValues (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:1482:37)
    at compareValues (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:1494:16)
    at Object.binarySearch (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:1030:21)
    at addTypeToUnion (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:37021:82)
    at addTypesToUnion (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:37037:28)
    at getUnionType (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:37117:28)
    at getArrayLiteralType (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:44356:17)
    at checkArrayLiteral (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:44351:20)
    at checkExpressionWorker (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:49158:28)
    at checkExpression (/Users/user/Documents/app/node_modules/typescript/lib/typescript.js:49108:42)
⠼  Building for production...


Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions