Repository navigation
Closed
Labels
DuplicateAn existing issue was already created
Description
I get this exception when trying to migrate an existing JS app to TS.
/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:63860
throw e;
^
Error: Debug Failure. False expression.
at getJSDocTags (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:10302:22)
at getFirstJSDocTag (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:10309:24)
at Object.getJSDocType (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:10286:19)
at getContextualSignature (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:33934:32)
at checkFunctionExpressionOrObjectLiteralMethod (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:36773:43)
at checkExpressionWorker (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37696:28)
at checkExpression (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37629:42)
at checkBinaryLikeExpression (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37246:29)
at checkBinaryExpression (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37238:20)
at checkExpressionWorker (/home/burton/projects/polar-bookshelf/node_modules/typescript/lib/tsc.js:37717:28)
.. I imagine I have malformed JSDoc tags that I need to resolve but I can't find out which one is causing the problem. I went through and looked at the last .js file from my app it's printing and removed the JSDoc and that didn't resolve the problem.
It would be nice if TSC didn't choke but even just better error handling so I can fix this myself would be nice.
TypeScript Version: 2.9.2
Search Terms:
getJSDocTags " Debug Failure. False expression."
Code
I'm not sure
Expected behavior:
Don't generate this error but at least show me where the problem is happening.
Actual behavior:
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already created
Activity
j-oliveras commentedon Jul 25, 2018
Duplicate of #25067?
InputNeuron commentedon Jul 25, 2018
Fixed on 3.0.0-rc!
typescript-bot commentedon Aug 2, 2018
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
mcblum commentedon Aug 14, 2018
Andy (Andrewkraft) (@Andy-MS) just seeing this in our project as well, but we're stuck at 2.7.2 due to the deps of
@angular/cli. Any idea if there's a way to work around this?mcblum commentedon Aug 14, 2018
Andy (Andrewkraft) (@Andy-MS) thanks for the reply. so these issues appear to be related to dependencies of the project. I've created a Pastebin. If you have any ideas, it would be much appreciated!
https://paste.laravel.io/f617665b-bfd9-44fd-96ba-b296cb8b3d5e
Edit: also, these errors are being thrown with TS 3.0.1.
mcblum commentedon Aug 14, 2018
Andy (Andrewkraft) (@Andy-MS) interesting. I ran
ng --versionand it shows 3.0.1. When you say avoid compiling, what exactly does that mean? At the moment we're using the standard Angular CLI build process - to be honest, I'm not sure what it's doing behind the curtain.