problem with Angular 5 material: installed angular material, everything works fine until I import some component, then the error in the browser console: Uncaught TypeError: Object (...) is not a function and a lot of varnings. What could be the problem?
Файл material.module.ts: import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import {MatMenuModule} from '@angular/material/menu'; @NgModule({ imports: [MatMenuModule], exports: [MatMenuModule] }) export class MaterialModule{} app.module.ts: import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { ApiDataComponent } from './api-data/api-data.component'; import { HttpClientModule } from '@angular/common/http' import { ApiService } from './api.service' import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MaterialModule } from './material.module' @NgModule({ declarations: [ AppComponent, ApiDataComponent ], imports: [ BrowserModule, HttpClientModule, BrowserAnimationsModule, MaterialModule ], providers: [ApiService], bootstrap: [AppComponent] }) export class AppModule { }
npmversions of the router itself and the project collector (I had@reils/webpacker) had to roll back to the minor ones - Ilya