It seems like you might be importing or declaring JQuery multiple times, triggering TypeScript to issue a warning. Duplicating declarations can cause issues, especially with plugins that rely on the $
instance. If $
is redefined later on, these plugins may stop functioning correctly.
The best solution is to centralize all declarations in one location, such as your main or index file. If that's not feasible, you can instruct TypeScript to overlook duplicate declarations by adding the following property to your tsconfig.json
:
{
"compilerOptions": {
...
"skipLibCheck": true,
...
}
}