我正在尝试在我的角度项目上运行 ng build 但我不断收到错误消息
ERROR in Unexpected value 'MatTooltipModule in /Users/strypeez/Dropbox/gosco-webNEW/gosco-webUPTODATE/node_modules/@angular/material/tooltip/typings/index.d.ts' imported by the module 'AppModule in /Users/strypeez/Dropbox/gosco-webNEW/gosco-webUPTODATE/src/app/app.module.ts'. Please add a @NgModule annotation.
这就是我在 app.module.ts 中导入它的方式
import {MatTooltipModule} from '@angular/material/tooltip';
我有它在我的进口
imports: [
FormsModule,
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
MatTooltipModule, ]
我能做些什么来修复错误?
编辑:我添加了我的依赖项,有什么会导致问题吗?
"dependencies": {
"@angular/animations": "^4.1.3",
"@angular/cdk": "^2.0.0-beta.12",
"@angular/common": "^4.1.3",
"@angular/compiler": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/material": "^2.0.0-beta.12",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@angular/router": "4.1.3",
"@angular/upgrade": "4.1.3",
}