Repository navigation
Closed
Labels
DuplicateAn existing issue was already created
Description
I saw similar issues around alredy but not this specific place. It happens when buildOptimizer and sourceMap are both true:
Module build failed: Error: Debug Failure. False expression.
at getJSDocTags (/home/.../node_modules/typescript/lib/typescript.js:13197:22)
at getFirstJSDocTag (/home/.../node_modules/typescript/lib/typescript.js:13205:24)
at Object.getJSDocType (/home/.../node_modules/typescript/lib/typescript.js:13173:19)
at getContextualSignature (/home/.../node_modules/typescript/lib/typescript.js:41002:32)
at checkFunctionExpressionOrObjectLiteralMethod (/home/.../node_modules/typescript/lib/typescript.js:44621:43)
at checkExpressionWorker (/home/.../node_modules/typescript/lib/typescript.js:45681:28)
at checkExpression (/home/.../node_modules/typescript/lib/typescript.js:45609:42)
at checkBinaryLikeExpression (/home/.../node_modules/typescript/lib/typescript.js:45155:29)
at checkBinaryExpression (/home/.../node_modules/typescript/lib/typescript.js:45147:20)
at checkExpressionWorker (/home/.../node_modules/typescript/lib/typescript.js:45702:28)
at checkExpression (/home/.../node_modules/typescript/lib/typescript.js:45609:42)
at checkExpressionCached (/home/.../node_modules/typescript/lib/typescript.js:45457:38)
at getTypeOfExpression (/home/.../node_modules/typescript/lib/typescript.js:45577:28)
at checkDeclarationInitializer (/home/.../node_modules/typescript/lib/typescript.js:45469:24)
at getTypeForVariableLikeDeclaration (/home/.../node_modules/typescript/lib/typescript.js:30738:28)
at getWidenedTypeForVariableLikeDeclaration (/home/.../node_modules/typescript/lib/typescript.js:30961:24)
I have no idea which comment in the polygon.js causes that. I am able to provide the source code. The package is plotly.js 1.39.4.
npm 6.3.0
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already created
Activity
marvec commentedon Aug 7, 2018
This seems to be the problematic code that make typescript fail:
marvec commentedon Aug 7, 2018
And my wild guess is that this can be the cause - #24997 and #24996
marvec commentedon Aug 7, 2018
Andy (Andrewkraft) (@Andy-MS) Unfortunatelly, I am not able to try with typescript@next easily. Our project has a lot of dependencies that are incompatible with typescript>2.10. I spent half an hour trying to make it it work but without luck. Is there just a change/patch I can introduce in typescript to verify it?
marvec commentedon Aug 7, 2018
Andy (Andrewkraft) (@Andy-MS) It is probably the same case as #25067 because when I split the defnition in the problematic file like the following, it went fine:
typescript-bot commentedon Dec 15, 2018
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.