Following the execution of npm install @types/jquery
, I encountered a compilation issue while running my Angular project with ng serve
ERROR in ../../../../../../AppData/Roaming/JetBrains/WebStorm2020.1/javascript/extLibs/global-types/node_modules/@types/jquery/misc.d.ts:27:33 - error TS2503: Cannot find namespace 'Sizzle'.
27 interface Selectors extends Sizzle.Selectors {
~~~~~~
../../../../../../AppData/Roaming/JetBrains/WebStorm2020.1/javascript/extLibs/global-types/node_modules/@types/jquery/misc.d.ts:35:14 - error TS2503: Cannot find namespace 'Sizzle'.
35 ':': Sizzle.Selectors.PseudoFunctions;
~~~~~~
../../../../../../AppData/Roaming/JetBrains/WebStorm2020.1/javascript/extLibs/global-types/node_modules/@types/jquery/misc.d.ts:43:17 - error TS2503: Cannot find namespace 'Sizzle'.
43 filter: Sizzle.Selectors.FilterFunctions;
~~~~~~
../../../../../../AppData/Roaming/JetBrains/WebStorm2020.1/javascript/extLibs/global-types/node_modules/@types/jquery/misc.d.ts:6643:23 - error TS2304: Cannot find name 'JQueryStatic'.
6643 declare const jQuery: JQueryStatic;
~~~~~~~~~~~~
../../../../../../AppData/Roaming/JetBrains/WebStorm2020.1/javascript/extLibs/global-types/node_modules/@types/jquery/misc.d.ts:6644:18 - error TS2304: Cannot find name 'JQueryStatic'.
6644 declare const $: JQueryStatic;
~~~~~~~~~~~~
I decided to clone the project again and place it in a new directory, but unfortunately, I still face the same problem upon launching
ERROR in error TS6053: File 'C:/Users/AppData/Roaming/JetBrains/WebStorm2020.1/javascript/extLibs/global-types/node_modules/@types/jquery/misc.d.ts' not found.
Even after verifying that the misc.d.ts file exists in the folder, I am still unable to comprehend what could be causing this issue.