
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 ], ... })
修改全局配置即可
