【发布时间】:2020-11-07 16:41:58
【问题描述】:
我刚刚安装了 Angular 10 并将 VSCode 升级到了最新版本。
创建新模块时:
import { NgModule } from '@angular/core';
const mm = []
@NgModule({
imports: [ ...mm ],
exports: [...mm
],
providers: [
]
})
export class MaterialModule {
}
创建此装饰器错误:
class MaterialModule
Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.ts(1219)
而且它只是为新模块创建的。现有的app.module.ts 没有错误……所以有点混乱。
【问题讨论】:
标签: javascript angular typescript visual-studio-code