While working on an Angular 7 component, I encountered an issue when trying to read a custom file. The problem arises when the server restarts, even though there are no errors in the component's TypeScript file.
ERROR:
app/zontify-components/zontify-dynamic-field.directive.ts(5,29): error TS2306: File 'D:/Phython/zontify/Purchased/webmin/angular-7/src/src/app/field-interface.ts' is not recognized as a module. app/zontify-components/zontify-select/zontify-select.component.ts(3,29): error TS2307: Cannot find module 'src/app/field-interface'. app/zontify-lead/zontify-lead.component.ts(10,29): error TS2306: File 'D:/Phython/zontify/Purchased/webmin/angular-7/src/src/app/field-interface.ts' is not recognized as a module.
I am new to Angular 7 and would appreciate any help in understanding what might be causing this issue.
The directory structure for the interface is as follows:
Project > app > field-interface.ts