error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

Есть структура проекта, где в папке src есть папки app и spa на одном уровне. В app - app.module.ts, в spa - spa.module.ts. Возникает ошибка при запуске проекта - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

**app.module.ts**

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { SpaModule } from 'src/spa/spa.module';

  @NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule, SpaModule
    ],  
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

**spa.module.ts**

import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import { SpaBodyComponent } from './spa-body/spa- 
body.component';
import { SpaHeaderComponent } from './spa-header/spa- 
header.component';
import { SpaContentComponent } from './spa-content/spa- 
content.component';
import { SpaFooterComponent } from './spa-footer/spa- 
footer.component';

NgModule ({
imports: [CommonModule],
declarations: [SpaBodyComponent, SpaHeaderComponent, 
SpaContentComponent, SpaFooterComponent],
exports: [SpaBodyComponent]
})
export class SpaModule {}

**app.component.ts**

import { Component } from '@angular/core';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'car-fest';
}

**app.component.html**

<spa-header></spa-header>
<spa-content></spa-content>
<spa-footer></spa-footer>

Spa-компоненты ещё пустые, то есть только созданы стандартным 
методом и всё. Буду благодарен за помощь!

Ответы (0 шт):