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.

Not working with angular 13

See original GitHub issue

Describe the bug Multiple dependencies missing

To Reproduce Steps to reproduce the behavior:

  1. npm install @swimlane/ngx-graph --save
  2. See errors

Expected behavior Should be able to build. dependencies in package json "dependencies": { "@angular/animations": "~13.1.0", "@angular/common": "~13.1.0", "@angular/compiler": "~13.1.0", "@angular/core": "~13.1.0", "@angular/forms": "~13.1.0", "@angular/platform-browser": "~13.1.0", "@angular/platform-browser-dynamic": "~13.1.0", "@angular/router": "~13.1.0", "@swimlane/ngx-graph": "~8.0.0", "rxjs": "~7.4.0", "tslib": "^2.3.0", "zone.js": "~0.11.4" },

Errors Error: Module not found: Error: Can’t resolve ‘d3-scale’ Error TS7016: Could not find a declaration file for module ‘d3-dispatch’ Error TS7016: Could not find a declaration file for module ‘d3-timer’ Error TS7016: Could not find a declaration file for module 'd3-drag

ngx-graph version 8.0.0 ^8.0.0 ~8.0.0

Installing these fixes the build problem npm install d3-scale --save npm i --save-dev @types/d3-dispatch npm i --save-dev @types/d3-timer npm i --save-dev @types/d3-drag But introduces runtime error: core.mjs:6461

   ERROR Error: Uncaught (in promise): TypeError: (0 , tslib__WEBPACK_IMPORTED_MODULE_22__.__decorate) is not a function

TypeError: (0 , tslib__WEBPACK_IMPORTED_MODULE_22__.__decorate) is not a function at Module.87773 (swimlane-ngx-graph.mjs:2224:11)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
cfreziercommented, Apr 28, 2022

Please, can you provide a date when a fix will be available ? A permissive dependency like "rxjs": "^6.5.3 || ^7.4.0", would.also be good.

4reactions
JohnGalt1717commented, Jan 27, 2022

Primary issue I’m having is that it only supports rxjs 6 when rsjs is on 7.x which is the preferred version for Angular 13 so I can’t install with rsjs 7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular material not working on Angular13
I installed Angular Material on my project and that was not loading. I tried importing Style sheets to the global Style.css.
Read more >
v14.0.2 does not work with Angular 13 · Issue #1017
Latest version v14.0.2 is not working with Angular 13. I am getting UntypedFormControl error. Please fix this as I need to use v14.0.2...
Read more >
Upgrading from AngularJS to Angular
One of the keys to a successful upgrade is to do it incrementally, by running the two frameworks side by side in the...
Read more >
PDFTron lib is not working on Angular 13 - WebViewer
WebViewer Version: @pdftron/webviewer : “^6.3.3” Angular version : 13.3.10 Error : On UI when we click on view or edit pdf button then...
Read more >
Troubleshooting | jest-preset-angular - GitHub Pages
Problems may arise if you're using custom builds (this preset is tailored for angular-cli as firstly priority). Please be advised that every entry...
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