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 ], ... })


修改全局配置即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM