I am following a tutorial from Microsoft docs and trying to import jQuery files into my client web part but getting error. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/add-jqueryui-accordion-to-web-part
I am trying to load jquery and jqueryUI from CDN in my typescript file, I have added typings for both
npm install --save @types/jquery@2
npm install --save @types/jqueryui
config.json look like this
In my type script file, I am trying to reference them with these lines
import * as $ from 'jquery';
I am getting this error in web part.
i can also see that both typings have been installed successfully
How can I fix this issue?
here is my tsconfig.json
if I load jqury alone, it works fine but when I load both jquery and jqueryUI, I get this error.