Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

unable to add in my project #1816

Open
Saadansariii opened this issue Dec 20, 2024 · 1 comment
Open

unable to add in my project #1816

Saadansariii opened this issue Dec 20, 2024 · 1 comment

Comments

@Saadansariii
Copy link

🪲 bug report

A clear and concise description of what the bug is.

🔬 Minimal Reproduction

StackBlitz/GitHub Link:

Step-by-step Instructions:

🎱 Expected behavior

A clear and concise description of what you expected to happen.

📷 Screenshots

🌐 Your Environment

  • NodeJS version:
  • Angular version:
  • Angular CLI version:
  • jQuery version:
  • DataTables version:
  • angular-datatables version:

📝 Additional context

@PalashSachan
Copy link

hey your latest package [email protected] is getting error in angular v18.2.5

unable to import DataTablesModule module

this line in app.module.ts giving error
import { DataTablesModule } from 'angular-datatables';
error:
Could not find a declaration file for module 'angular-datatables'.
'.../node_modules/angular-datatables/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/angular-datatables if it exists or add a new declaration (.d.ts) file containing declare module 'angular-datatables';ts(7016)

i tried --save-dev @types/angular-datatables

its also giving error
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fangular-datatables - Not found
npm ERR! 404
npm ERR! 404 '@types/angular-datatables@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

NodeJS version: v20.11.1
Angular version: v18.2.5
Angular CLI version: v18.2.5
jQuery version: 3.5.32
DataTables version: "datatables.net-bs5": "^2.2.1"
angular-datatables version: v19.0.0

it worked for me when i installed [email protected] in same config

but latest version v19.0.0 is not working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants