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.

tsickle@0.33.0 requires a peer of typescript@git://github.com/mprobst/TypeScript.git#5456479a4a

See original GitHub issue

Using

@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:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
rdhelmscommented, Oct 23, 2018

@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#L112

And the relevant addition, along with ng-packagr:

      {
        type: NodeDependencyType.Dev,
        name: 'ng-packagr',
        version: '^4.2.0',
      },
      {
        type: NodeDependencyType.Dev,
        name: 'tsickle',
        version: '>=0.29.0',
      },
0reactions
alexeaglecommented, Oct 24, 2018

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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