These are the imports causing the issue:
import { HttpClient } from '@angular/common/http';
import { ConfirmationService, MessageService } from "primeng/api";
The error message I encountered is
ESLint: Parse errors in imported module '@angular/common/http': Cannot read property 'name' of undefined (undefined:undefined)(import/namespace)
and
ESLint: Parse errors in imported module 'primeng/api': Cannot read property 'name' of undefined (undefined:undefined)(import/namespace)
This is how my .eslint.json looks like:
{
// Eslint configuration details here
}
This is my .tsconfig.json:
{
// TypeScript compiler options here
}
I have tried adjusting the parserOptions without success. While researching online, I could not find a solution. It seems this issue may be specific to WebStorm as it doesn't occur in VSCode.
If more information or screenshots of my WebStorm settings are needed, please let me know. Any assistance on resolving this would be highly appreciated.