You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
We can't say anything about this without a reproduction of the problem.
If you can't reduce the problem to a small reproduction, it's likely specific to the typescript code that you created, and the fork-ts-checker plugin which does the typeschecking
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?
The text was updated successfully, but these errors were encountered: