我有以下文件:
Projects模块是app模块的子模块.我在app模块中包含项目模块的路由,并在构建期间收到以下错误:
ERROR in无法解决"... app-routing.module.ts"中的"项目".
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule, Routes } from '@angular/router';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { BreadcrumbModule } from 'angular-crumbs';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { HeaderComponent } from './header/header.component';
import { MainComponent } from './main/main.component';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
import { ProjectsModule } from './projects/projects.module';
import { ProjectModule …Run Code Online (Sandbox Code Playgroud)