I am trying to install the ngx-datatable module for my angular project. But whenever i try to install it with npm this error shows.
I tried doing npm i @swimlane/ngx-datatable --force and that installed the module but my whole project stopped working.

@swimlane/ngx-datatablerequires an earlier version of rxjs. You may have to use an earlier rxjs/angular version to run this package.