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.

Angular 13 support

See original GitHub issue

🚀 Feature request

Is your feature request related to a problem? Please describe.

With Angular 13 out, this project should support it.

Describe the solution you’d like

Support Angular 13 and RxJS 7.

Describe alternatives you’ve considered

Upgrading the parent project to Angular 13 and RxJS 7 breaks the dtTrigger mechanism: ERROR Error: Uncaught (in promise): Both the table and dtOptions cannot be empty

One possible cause is this. RxJS now requires a value for any non void Subjects. The official example shows such behaviour, although it’s also not typed, which is required in strict environments. However the latest version of this library uses Subject<ADTSettings>, and this simply using this.dtTrigger.next({}); solves the RxJS compatibility issue in terms of the IDE not giving error, however after such change, the above error is produced at runtime.

The current workaround is to not use dtTrigger at all, in which case the library works with Angular 13 (at least in my app) without any obvious problems.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
shanmukhatejacommented, Nov 8, 2021

Hi @alexaka1

Thank you for the detailed explanation of the problem.

Angular 13 support will be added in the next few days.

Could you try this.dtTrigger.next(this.dtOptions) and see if it works?

0reactions
petebacondarwincommented, Nov 25, 2021

Glad you got it sorted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
Actively supported versionslink ; ^14.0.0, LTS, 2022-06-02, 2022-11-18, 2023-11-18 ; ^13.0.0, LTS, 2021-11-04, 2022-06-02, 2023-05-04 ...
Read more >
Angular - endoflife.date
Release Released Active Support 15 1 month and 1 week ago. (16 Nov 2022) Ends in 4 months and 3 weeks. (18 M... 14 (...
Read more >
Angular 13: Everything You Need to Know About This Version
The main new features in Angular 13 are TypeScript 4.4 support, version 7.4 of RxJS, router changes, Angular CLI enhancements, testing ...
Read more >
Top Features Of Angular 13 You Must Know | Zenesys Blogs
Angular 13 Features and Updates · Ivy Is The New Engine · Typescript 4.4 Support · Angular Package Format Transformations · Angular Command-Line ......
Read more >
Angular 13 Released: Top New Features and Updates
Angular 13 Features & Updates. NodeJS Support. NodeJS Support. The upgrades before Angular 12.20.0 aren't supported by Angular framework ...
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