Typescript and JQuery compile error: Cannot find name '$'

前端 未结 5 2115
醉梦人生
醉梦人生 2021-02-05 03:13

I\'m testing typescript with jquery, but when I compile the test.ts file, it always gives me an error indicating: Cannot find name \'$\'.

I\'ve already imported jquery &

5条回答
  •  爱一瞬间的悲伤
    2021-02-05 04:09

    Install and import following package. it will solved for error ("Cannot find name '$'"). Angular version is 7

    import 'datatables.net';

提交回复
热议问题