Facing jquery issue after install angular datatable

Facing jquery issue after install angular datatable

EraiarasuEraiarasu Posts: 5Questions: 1Answers: 0
edited October 2023 in Free community support

I am using angular16 and installed datatables.net@1.13.5 and the latest bootstrap. I am facing issue on importing jquery
import * as $ from 'jquery'.
Please someone help

Thanks,
Erai

Replies

  • allanallan Posts: 62,803Questions: 1Answers: 10,332 Site admin

    Hi Erai,

    What's the issue - you haven't shown any error messages or something from the compiler stating what the issue is?

    Allan

  • EraiarasuEraiarasu Posts: 5Questions: 1Answers: 0
    edited October 2023

    Hi Allan,
    Thanks for your reply.
    I am getting the below compile error message.

  • allanallan Posts: 62,803Questions: 1Answers: 10,332 Site admin

    The first two are an issue with the jQuery UI AutoComplete library and nothing to do with DataTables. You might need to install the jQuery UI TypeScript types package.

    The third one suggests you have $ defined somewhere else. I don't know what file it is in since the error is blacked out, but have a look in that file.

    Allan

  • EraiarasuEraiarasu Posts: 5Questions: 1Answers: 0

    jQuery UI is already installed.
    Before installing angular datatable it was working, after installation, Jquery dependency is included with that package and showring compilation error.

  • allanallan Posts: 62,803Questions: 1Answers: 10,332 Site admin

    Did you install this package though? As I say, that is nothing to do with DataTables.

    We don't publish Angular DataTables - you might be best asking the author of that package.

    Allan

Sign In or Register to comment.