I'm using Angular 12.1.4 and had used Syncfusion library for my project. But I'm getting the "Either remove this import or add it as a dependency." error in the SonarQube for the following import in my TS file:-
import { createElement, L10n, setCulture } from '@syncfusion/ej2-base';
import { DateRangePicker } from '@syncfusion/ej2-calendars';
import { DataUtil, DataManager } from '@syncfusion/ej2-data';
I tried adding all these dependencies in the package.json file like below:-
"dependencies": {
"@syncfusion/ej2-base": "19.4.52"
},
But I'm still getting the error. If any one out here has any idea on how to resolve this issue, it'll be really helpful.