Error when running ang8
See original GitHub issueType of Issue
[ X ] Bug Report
[ ] Feature Request
Description
_A bug: I have a plugin working with ang7
but when I try to upgrade to 8, i receive an error
Here is the error on travis:
ng-packagr
/ng-gantt/node_modules/tslib/tslib.js:65
extendStatics(d, b);
^
TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)
at Object.__extends (/ng-gantt/node_modules/tslib/tslib.js:65:9)
at /ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/template.js:115:17
at /ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/template.js:314:6
at /ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/template.js:3:17
at Object.<anonymous> (/ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/template.js:9:3)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at /ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/transform.js:20:22
at /ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/transform.js:10:17
at Object.<anonymous> (/ng-gantt/node_modules/@angular/compiler-cli/src/ngtsc/indexer/src/transform.js:16:3)
at Module._compile (internal/modules/cjs/loader.js:759:30)
How To Reproduce
_A bug: Clone this branch
Try to run ng-packagr -p ng-gantt/package.json
Expected Behaviour
_A bug: Expected that this would build the same that happens in master branch, that is using angular 7 version.
Here the last build that was passing:
https://travis-ci.com/jsGanttImproved/ng-gantt/builds/121690974
Version Information
$ node_modules/.bin/ng-packagr --version
I cant run this because the error occurs when run ng-packagr
This was the ang7 version:
node_modules/.bin/ng-packagr --version
ng-packagr: 4.4.5
@angular/compiler: 7.1.4
rollup: 0.67.4
tsickle: 0.27.2
typescript: 3.1.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
error while running code in angular project - Stack Overflow
ERROR in Module build failed (from ./node_modules/postcss-loader/src/index.js): SyntaxError. (1:1) Unknown word.
Read more >Identify and Fix Build and Deployment Errors in Your Angular ...
Introduction. Angular is a powerful framework that allows you to both build and deploy your apps very easily. Inevitably, you will run into ......
Read more >幸运刮刮乐app-【 官网so195·com 】-亚星百家乐-幸运刮刮乐 ...
Liquid error (sections/collection-listLeftSidebar-template.liquid line 150): Could not find asset snippets/spurit_dmr_collection_template_snippet.liquid.
Read more >A problem with setting an actual scan as nominal
Before running the program, edit the scan and change the Execution to ... 100x what error I would've expected - but only in...
Read more >ANG 8 Flashcards | Quizlet
control tower. wieża kontrolna. overtaking. wyprzedzanie. error. błąd. run over. przejechać kogoś. run out of. skończyć się. give away. przestać działać.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
dependencies/
@angular/cli
and devDependencies/@angular/compiler-cli
both must have the same version number.The problem seems to be that you have multiple
@angular/compiler
defined as your dependencies, and also your@angular/<package>
versions are not aligned.Use this package.json
Also it is important to highlight that in ng-packagr version 4.x, Angular version 8 is not supported. Angular version 8 is supported by ng-packagr 5+