When I am creating the package of my module I am getting below error.
TypeError: Cannot read property 'isSkipSelf' of null at ProviderElementContext._getDependency(C:\Users\ravinder\MyProjectName\node_modules\@angular\compiler\bundles\compiler.umd.js:19242:22
I have tried all the possible solutions given on the internet like missing @injectable
, check dependency injection, circular dependency etcetera. Any help will be appreciated.
I found the solution. Actually, there were two broken imports which were working fine. One of them had a forward slash "/" at the end of the path but TSC was not fetching any error for that, and other was the path of the folder instead of TS file, and for that too TSC was not giving any error.