Ant Design of Angular

 1、按照官方的方法,报了这个

node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.

的错误,

解决方法:找到这个文件node_modules/rxjs/internal/types.d.ts

在最后一行去掉分号,即可,如果没有分号,则加个分号

(PS:我也不知道为什么会这样)

 2、使用了Ant的树形结构,结构报了上图的错误

解决方法:参考文章(https://stackoverflow.com/questions/43241193/found-the-synthetic-property-panelstate-please-include-either-browseranimati)

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

@NgModule({
  ...,
  imports: [
    ...,
    BrowserAnimationsModule
  ],
  ...
})


修改全局配置即可
原文地址:https://www.cnblogs.com/goatling/p/10400973.html