The issue:
https://i.sstatic.net/jUKBU.png
https://plnkr.co/edit/910M73kwYKc8xPlSIU57?p=preview
index
<!DOCTYPE html>
<html>
<head>
<base href="/">
<title>Angular 2.1.2 + TypeScript Starter Kit</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3e4451505b10544d7e0e1008100c0f">[email protected]</a>/dist/zone.js"></script>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ccbea9aaa0a9afb8e1a1a9b8ada8adb8ad8cfce2fde2f5">[email protected]</a>/Reflect.js"></script>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4a3933393e2f2720390a7a647b73647e7b">[email protected]</a>/dist/system.js"></script>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cebab7beabbdadbca7beba8efce0ffe0fa">[email protected]</a>/lib/typescript.js"></script>
<script src="config.js"></script>
<script>
System.import('app')
.catch(console.error.bind(console));
</script>
</head>
<body>
<my-app>
loading...
</my-app>
</body>
</html>
Directory
https://i.sstatic.net/jUKBU.png
app (the app.module)
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { routes } from './app.routing';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
// import { AuthService } from './shared/services/auth.service';
@NgModule({
imports: [
BrowserModule,
FormsModule,
RouterModule.forRoot(routes)
],
declarations: [
AppComponent,
LoginComponent
],
providers: [
// AuthService,
],
bootstrap: [ AppComponent ]
})
export class AppModule {}
Changed the name of my config
to src/config
but the issue persists.