Angular 意外值出错';空';由模块';AppModule位于/home/conor/Desktop/repos/minviro db tool frontend/src/app/app.module.ts';

Angular 意外值出错';空';由模块';AppModule位于/home/conor/Desktop/repos/minviro db tool frontend/src/app/app.module.ts';,angular,typescript,Angular,Typescript,升级angular的版本,我已经更新了app.module.ts,将HttpModule更新为HttpClientModule,现在我在模块'AppModule in/home/conor/Desktop/repos/minviro db tool frontend/src/app/app.module.ts'声明的意外值'null'中收到错误 import { BrowserModule } from '@angular/platform-browser'; import { NgModule

升级angular的版本,我已经更新了app.module.ts,将HttpModule更新为HttpClientModule,现在我在模块'AppModule in/home/conor/Desktop/repos/minviro db tool frontend/src/app/app.module.ts'声明的意外值'null'中收到错误

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgMultiSelectDropDownModule } from 'ng-multiselect-dropdown';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { NavbarComponent } from './navbar/navbar.component';
import { HomeComponent } from './home/home.component';
import DatabaseComponent from './database/database.component';
import { routing } from './app.routing';
import DbSearcherComponent from './db-searcher/db-searcher.component';

@NgModule({
  declarations: [
    AppComponent,
    NavbarComponent,
    HomeComponent,
    DatabaseComponent,
    DbSearcherComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpClientModule,
    routing,
    NgMultiSelectDropDownModule.forRoot(),
  ],
  providers: [],
})
export class AppModule {}


您是否尝试包含
CommonModule
?是的,添加了,没有更改。