Hello, I am encountering an issue with my small Angular (2.1.1) application that consists of a module and a component. Everything was functioning correctly until this error occurred:
error_handler.js:53 TypeError: jit_selectOrCreateRenderHostElement5 is not a function
at _View_AppComponent_Host0.createInternal (/AppModule/AppComponent/host.ngfactory.js:13:16)
at _View_AppComponent_Host0.System.register.context_1.execute.AppView.create (http://localhost:9000/assets/lib/angular__core/src/linker/view.js!transpiled:138:33)
at _View_AppComponent_Host0.System.register.context_1.execute.DebugAppView.create (http://localhost:9000/assets/lib/angular__core/src/linker/view.js!transpiled:348:56)
... (error continues)
I have tried reverting all recent changes to no avail. In an attempt to simplify the app, I stripped it down to its bare minimum but still faced the same issue:
app.module:
// ANGULAR DEPENDENCIES
import { NgModule} from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { FormsModule, ReactiveFormsModule } from "@angular/forms"
import { HttpModule } from "@angular/http"
// COMPONENTS
import { AppComponent } from "./app.component"
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, ReactiveFormsModule, FormsModule, HttpModule],
bootstrap: [AppComponent]
})
export class AppModule {}
And app.component:
import { Component } from "@angular/core"
@Component({
selector: "app",
template: `'lol'`
})
export class AppComponent {
}
The HTML simply contains <app></app>
I am completely baffled by this error as everything was working perfectly just a few hours ago. Any insights on what might be causing this?
EDIT:
main.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { AppModule } from './app.module'
platformBrowserDynamic().bootstrapModule(AppModule)