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.

Related articles

Andrew Fletcher29 Sep 2023
Setting up an ionic app
Recently a client handed me code that runs an app through iOS and Android.  No details about whether native or otherwise.  Once I had the opportunity to crawl through the code, definitely not native.  Typescript, Angular, Cordova... etc.Glancing at the modification dates, the last...