После запуска
ng serve
В браузере инструментов разработчика я вижу следующую ошибку:
Uncaught ReferenceError: __importDefault is not defined
at Module../src/app/home/home.component.ts (home.component.ts:5)
at __webpack_require__ (bootstrap:79)
at Module../src/app/app-routing.module.ts (main.js:98)
at __webpack_require__ (bootstrap:79)
at Module../src/app/app.module.ts (app.component.ts:8)
at __webpack_require__ (bootstrap:79)
at Module../src/main.ts (environment.ts:16)
at __webpack_require__ (bootstrap:79)
at Object.0 (main.ts:13)
at __webpack_require__ (bootstrap:79)
В моем home.component.ts у меня есть следующее:
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'miles-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
Это мои настройки:
Angular CLI: 9.0.3
Node: 12.16.1
OS: win32 x64
Angular: 9.0.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.25
@angular-devkit/build-angular 0.803.25
@angular-devkit/build-optimizer 0.803.25
@angular-devkit/build-webpack 0.803.25
@angular-devkit/core 8.3.25
@angular-devkit/schematics 9.0.3
@angular/cdk 8.2.3
@angular/cli 9.0.3
@angular/material 8.2.3
@ngtools/webpack 8.3.25
@schematics/angular 9.0.3
@schematics/update 0.900.3
rxjs 6.5.4
typescript 3.7.5
webpack 4.39.2
Строка 5 - это просто templateURL, поэтому не уверен, на что он жалуется ...