question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

While using ng-packagr to generate angular package, it throws `Object.getJSDocTags` error

See original GitHub issue

Type of Issue

[x] Bug Report

Description

_A bug: _

while using ng-packgr to generate angular package it throws following error.

`> @syncfusion/ej2-angular-buttons@17.1.1 packagr D:\workspace\components\ej2-button-components\third-party\angular

ng-packagr -p ng-package.json && gulp tslib-resolve && gulp npmrc-changelog-injection

Building Angular library Generating bundle for @syncfusion/ej2-angular-buttons Cleaning bundle build directory Processing assets Running ngc Compiling to FESM15 Compiling to FESM5

BUILD ERROR Debug Failure. False expression. Error: Debug Failure. False expression. at Object.getJSDocTags (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:13197:22) at getJSDocTypeParameterDeclarations (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:11650:30) at Object.getEffectiveTypeParameterDeclarations (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:11645:67) at checkClassLikeDeclaration (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:48734:36) at checkClassExpression (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:48710:13) at checkExpressionWorker (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:45678:28) at checkExpression (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:45609:42) at checkBinaryLikeExpression (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:45155:29) at checkBinaryExpression (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:45147:20) at checkExpressionWorker (D:\workspace\components\ej2-button-components\third-party\angular\node_modules\typescript\lib\typescript.js:45702:28)

npm ERR! code ELIFECYCLE npm ERR! errno 111 npm ERR! @syncfusion/ej2-angular-buttons@17.1.1 packagr: ng-packagr -p ng-package.json && gulp tslib-resolve && gulp npmrc-changelog-injection npm ERR! Exit status 111 npm ERR! npm ERR! Failed at the @syncfusion/ej2-angular-buttons@17.1.1 packagr script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\kumaresan.subramani\AppData\Roaming\npm-cache_logs\2019-02-04T04_19_15_625Z-debug.log`

Expected Behaviour

if i use typescript version 2.8.4 or 2.7.2, issue wont be reproduced. i don’t know why. so please explain this to me?

working fine

"ng-packagr": "1.5.0", "tsickle": "0.34.0", "typescript": "^2.8.4", "uglify-js": "3.2.2"

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr: 1.5.0
@angular/*: 4.10.0
typescript: 2.9.2
rxjs: x.y.z
node: 8.11.3
npm/yarn: 6.6.0

Please include all version numbers that might be relevant, e.g. third-party libraries

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Feb 15, 2019

The solution would be to downgrade or upgrade typescript.

Upgrade is the suggested path of course.

0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 12 Library Builds Fails with error [object Object]
After days of debugging I finally found the reason. A component in the library was importing a file from another library using its...
Read more >
Angular package format
Developers can rely on Angular CLI and ng-packagr (a build tool Angular CLI uses) to produce packages in the Angular package format. See...
Read more >
A complete guide to Angular libraries - Will Taylor Blog
In this article, I will walk you the key elements of developing Angular libraries: Common use cases for Angular libraries. Creating a library ......
Read more >
How to use the @angular/compiler-cli.createCompilerHost ...
getWebpackCompilerHost) { throw new Error('AngularCompilerPlugin is running in a child compilation, but could' + 'not find a WebpackCompilerHost in the parent ...
Read more >
\appdata\local\temp\ng-eepcwd\angular-errors.log for further ...
So in modern operating systems, even administrators can't readily modify system ... angular ng serve command throws error: An unhandled exception occurred: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found