Javascript 意外值';装饰工厂';由模块导入';AppModule';剑道拳

Javascript 意外值';装饰工厂';由模块导入';AppModule';剑道拳,javascript,angular,typescript,kendo-ui,Javascript,Angular,Typescript,Kendo Ui,我正在尝试启动Angular/Kendo UI项目,但浏览器在控制台中显示以下错误: Error: Unexpected value 'DecoratorFactory' imported by the module 'AppModule'. Please add a @NgModule annotation. (编译时CLI中没有错误,仅在运行时) 这是我的app.module.ts文件: 从'@angular/platform browser'导入{BrowserModule}; 从“@

我正在尝试启动Angular/Kendo UI项目,但浏览器在控制台中显示以下错误:

Error: Unexpected value 'DecoratorFactory' imported by the module 'AppModule'. Please add a @NgModule annotation.
(编译时CLI中没有错误,仅在运行时)




这是我的
app.module.ts
文件:

从'@angular/platform browser'导入{BrowserModule};
从“@angular/core”导入{NgModule,Injectable};
从“./app routing.module”导入{AppRoutingModule};
从“./app.component”导入{AppComponent};
从“@angular/platform browser/animations”导入{BrowserAnimationsModule};
从“角度制表符组件”导入{TabModule};
从“@angular/common/http”导入{HttpClient,HttpClientModule,HttpClientJsonpModule};
从“@progress/kendo angular notification”导入{NotificationModule};
从'@angular/forms'导入{FormsModule};
从“@progress/kendo angular grid”导入{GridModule};
从'@progress/kendo angular layout'导入{LayoutModule};
从“@progress/kendo angular toolbar”导入{ToolBarModule};
从“@progress/kendo angular dialog”导入{DialogModule};
从“./edit.service”导入{EditService};
从'@angular/forms'导入{ReactiveFormsModule};
从“./edit form.component”导入{GridEditFormComponent};
@NGD模块({
导入:[BrowserModule,BrowserAnimationsModule,ApprovutingModule,TabModule,HttpClientModule,HttpClientJsonpModule,FormsModule,GridModule,NotificationModule,
Injectable、LayoutModule、Toolbar Module、DialogModule、EditService、ReactiveFormsModule、GridEditFormComponent],
声明:[AppComponent],
引导:[AppComponent]
})
导出类AppModule{}

我需要导入
NgModule
,否则
@NgModule
接口声明会给出以下错误:

Cannot find name 'NgModule'. Did you mean 'module'?


注意:这不是的副本(我按照说明操作,但没有修复错误)