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.

Zone.js and rxjs dependencies are causing issues when working with other 3rd party libraries

See original GitHub issue

I’m submitting a … (check one with “x”)

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior I’m having dependency issues caused by zone.js and rxjs. My package.json file is:

{
  "jspm": {
    "dependencies": {
      "@angular/common": "npm:@angular/common@^2.3.1",
      "@angular/compiler": "npm:@angular/compiler@^2.3.1",
      "@angular/core": "npm:@angular/core@^2.3.1",
      "@angular/platform-browser": "npm:@angular/platform-browser@^2.3.1",
      "@angular/platform-browser-dynamic": "npm:@angular/platform-browser-dynamic@^2.3.1",
      "@angular/router": "npm:@angular/router@^3.3.1",
      "angular2-google-maps": "npm:angular2-google-maps@^0.16.0",
      "core-js": "npm:core-js@^2.4.1",
      "hammerjs": "npm:hammerjs@^2.0.8",
      "ng2-simple-timer": "npm:ng2-simple-timer@^1.2.5",
      "reflect-metadata": "npm:reflect-metadata@^0.1.8",
      "rxjs": "npm:rxjs@5.0.0-rc.4",
      "zone.js": "npm:zone.js@^0.7.2"
    },
    "devDependencies": {
      "@types/core-js": "npm:@types/core-js@^0.9.35",
      "@types/node": "npm:@types/node@^6.0.52",
      "typescript": "npm:typescript@^2.1.4"
    }
  }
}

Now in the npm log I have:

npm WARN ng2-simple-timer@1.2.5 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN ng2-simple-timer@1.2.5 requires a peer of zone.js@^0.6.6 but none was installed.
npm WARN angular2-google-maps@0.16.0 requires a peer of zone.js@^0.6.25 but none was installed.

As you can see basically I should install rxjs@5.0.0-beta.12 and rxjs@5.0.0-rc.4 AND zone.js@^0.6.6, zone.js@^0.6.25 and zone.js@^0.7.2 to be able to fulfill every dependency for every library that I use. Now I have only 2 libraries. But how about if I would depend on 10 libraries? I guess you see the point.

Expected behavior Maybe it’s not directly connected to angular2, but I also don’t find any instructions on the net how to solve this issue. It’s also not a solution that I should go to those 3rd parties asking for an upgrade. I should ask then 10 3rd party? What if the maintainer has gone away? (the code would just work fine with the upgraded zone and rxjs) Once everybody has upgraded, and Angular moves forward the whole round begins from the beginning…

What I could imagine is that zone.js and rxjs shouldn’t be dependencies (don’t know that is it possible) at all for the 3rd party libraries. But in such a case the documentation should strongly highlight it.

  • Angular version: 2.3.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
PeterOsifesocommented, Dec 16, 2016

Me too

5reactions
ashleymorris2commented, Dec 16, 2016

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix CommonJS or AMD dependencies can cause optimization ...
I am facing the same issue for map operator as well - It says WARNING in ..\node_modules\rxjs\operators\map.js depends on rxjs-compat/operators/ ...
Read more >
webpack critical dependency: the request of a dependency is an ...
I have been working on vscode extension and I tried bundling it using Webpack. My project uses another project, that has been linked...
Read more >
Angular package format
This document describes the Angular Package Format (APF). APF is an Angular specific specification for the structure and format of npm packages that...
Read more >
Angular 8 - Bazel Walkthrough - Bits and Pieces - Bit.dev
Bazel is Google's open-source part of its internal build tool called ... You need to add any 3rd party libraries that do not...
Read more >
Changelog - Cypress Documentation
To leverage external dependencies in cy.origin() callbacks, ... Fixes issue where cookies were not handled within cy.origin for requests other than the AUT ......
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