l-lin / angular-datatables

DataTables with Angular
https://l-lin.github.io/angular-datatables/
MIT License
1.58k stars 486 forks source link

Unable to install this package using angular cli #1498

Closed Ramees-Raja closed 3 years ago

Ramees-Raja commented 3 years ago

When I tried to install using cli command "ng add angular-datatables"

It showing error "The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support."

Environment


- node version: 14.15.4
- angular version:10.2.4
- angular-cli version:10.2.1
hope-himalaya-ahuja commented 3 years ago

Facing the exact same issue running Angular 11 CLI with Angular 11 App with node 12.17

shanmukhateja commented 3 years ago

Hi, the library's versioning is linked to major version of Angular. Please try:

Angular 10:

ng add angular-datatables@10.1.0

Angular 11:

ng add angular-datatables@11.1.0

For more versions, take a look at the Releases page.

JamesonNetworks commented 3 years ago

Hi, the library's versioning is linked to major version of Angular. Please try:

Angular 10:

ng add angular-datatables@10.1.0

Angular 11:

ng add angular-datatables@11.1.0

For more versions, take a look at the Releases page.

Thanks for the info! I also just ran into this issue. You may want to add this information to the install instructions on http://l-lin.github.io/angular-datatables/#/getting-started . I've opened a PR for this at https://github.com/l-lin/angular-datatables/pull/1510

shanmukhateja commented 3 years ago

Hi, this issue has been fixed in latest release of v10. I'll also make releases for Angular v9 and v11 projects soon. Please try ng add angular-datatables on a new Angular 10 project and let me know if it persists :)

JamesonNetworks commented 3 years ago

Hi, this issue has been fixed in latest release of v10. I'll also make releases for Angular v9 and v11 projects soon. Please try ng add angular-datatables on a new Angular 10 project and let me know if it persists :)

Awesome! Will test this out tonight. Thank you!