Skip to main content

In Xcode and executing a run command, the response error was:

{
    "name": "NullInjectorError",
    "ngTempTokenPath": null,
    "ngTokenPath": ["Ee", "fe", "Ne", "Ne", "Ne"]
}

This was a result of me attempting to incorrectly import the AppComponent from inside a service.

import { AppComponent } from './app.component';

 

Solution

Remove from the service files any requests made for the AppComponent.