Dear Sir/Madam,
I created the file mime-type.validator.ts.
I am yet to use this file in my application. However, the file exists in my project.
Now, my application does not compile. I am getting the error as follows.
Failed to compile. Source file not found: '/Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan/src/app/mime-type.validator.ts'.
Earlier, I had created a .ts file as I felt I should have that. However, later I realised that I could add that function in one of my existing .ts files. So, I deleted that new .ts file. My application would not compile after that.
To solve this, I created an empty .ts file with the same name as earlier and then the application was compiling.
Request if you can provide me the solution.
Thanks and Regards,
Partha


Hi Partha,
Did you try restarting your build tool? Stop ng serve, delete file, and ng serve once more.
If that’s not working, it’s referenced somewhere else in your project, do a project-wide search for the file name (without .ts)
Regards
Sander