tsickle@0.33.0 requires a peer of typescript@git://github.com/mprobst/TypeScript.git#5456479a4a
See original GitHub issueUsing
@angular/cli@7.0.1
npm@6.4.1
node@8.11.3
Steps to reproduce:
ng new example
cd example/
ng g library example-lib
Output:
CREATE projects/example/karma.conf.js (968 bytes)
CREATE projects/example/ng-package.json (156 bytes)
CREATE projects/example/package.json (167 bytes)
CREATE projects/example/tsconfig.lib.json (726 bytes)
CREATE projects/example/tsconfig.spec.json (246 bytes)
CREATE projects/example/tslint.json (317 bytes)
CREATE projects/example/src/public_api.ts (159 bytes)
CREATE projects/example/src/test.ts (700 bytes)
CREATE projects/example/src/lib/example.module.ts (229 bytes)
CREATE projects/example/src/lib/example.component.spec.ts (635 bytes)
CREATE projects/example/src/lib/example.component.ts (259 bytes)
CREATE projects/example/src/lib/example.service.spec.ts (338 bytes)
CREATE projects/example/src/lib/example.service.ts (136 bytes)
UPDATE angular.json (4971 bytes)
UPDATE package.json (1446 bytes)
UPDATE tsconfig.json (534 bytes)
npm WARN tsickle@0.33.0 requires a peer of typescript@git://github.com/mprobst/TypeScript.git#5456479a4a but none is installed. You must install peer dependencies yourself.
added 107 packages from 88 contributors in 13.226s
I have no idea where this is coming from, because obviously that’s not the peer dependency listed in https://github.com/angular/tsickle/blob/master/package.json.
I tried doing a npm cache clean --force
in case that was relevant, but with no effect.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:9 (2 by maintainers)
Top Results From Across the Web
No results found
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
@alexeagle Angular 7 applications don’t depend on tsickle, but Angular libraries still do. See the above steps to reproduce which involve using
ng g library
Here’s the schematic run by
ng g library
that adds tsickle as an npm dependency: https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/library/index.ts#L112And the relevant addition, along with ng-packagr:
@rdhelms you’re right, the bug is in angular-cli library support which writes package.json with incompatible version of tsickle. https://github.com/angular/angular-cli/issues/12642