Good day!
I am facing an issue with my .net web app. I am working on an app with 2 modules that existed for a long time. I'm using angularJS and typescript for frontend. For reasons, 1 of these modules had to be disabled.
This has created an issue where I get the following error:
"Error: [$injector:unpr] Unknown provider: UploadBaseProvider <- UploadBase <- hourLimitService".
I have noticed that the UploadBase is used by "ng file upload" and the lib folder containing this is located within the module solution which has been disabled.
What I have tried:
I have tried to do the following but it didn't fix the issue at all:
I made a copy of the folder with the library and moved it to a similar path as it was located in the disabled module.
I have installed the library itself into the whole project through the Nuget package manager, I rebuilt the project but non of this fixed the problem.
I am still getting the same unknown provider message. So it doesn't seem to be detecting the uploadbaseProvider at all.
I have also included importing the files to the csproj folder of the module as follows(in correct groups as it was done in the other module's csproj file):
<Content Include="app\lib\ng-file-upload\data-url.js" />
<Content Include="app\lib\ng-file-upload\drop.js" />
<Content Include="app\lib\ng-file-upload\exif.js" />-
-
-
-
<pre>
<None Include="app\lib\ng-file-upload\FileAPI.min.js.map" />
<None Include="app\lib\ng-file-upload\ng-file-upload-all.min.js.map">
<DependentUpon>ng-file-upload-all.min.js</DependentUpon>
</None>
Can someone please let me know what is possible to do and how to fix the issue? I am willing to expand with extra information if requested.
Thank you.