错误更新angular2测试后11后发生 [英] Error After occured after updating angular2 Beta 11
本文介绍了错误更新angular2测试后11后发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更新angular2 beta.8到beta11后@View不工作。我得到的termial这个错误
错误在./~/ng2-bootstrap/components/datepicker/yearpicker.ts
(2,14):错误TS2305:模块'的/ home /迪内希的/ dev / angular2种子与 - 一饮而尽/ node_modules / angular2 /芯'没有出口成员查看。ERROR在./~/ng2-bootstrap/components/datepicker/monthpicker.ts
(2,14):错误TS2305:模块'的/ home /迪内希的/ dev / angular2种子与 - 一饮而尽/ node_modules / angular2 /芯'没有出口成员查看。ERROR在./src/app/components/subrouting/sub-routing.ts
(1,20):错误TS2305:模块'的/ home /迪内希的/ dev / angular2种子与 - 一饮而尽/ node_modules / angular2 /芯'没有出口成员查看。ERROR在./src/app/components/sub-routing-2/sub-routing-2.ts
(1,20):错误TS2305:模块'的/ home /迪内希的/ dev / angular2种子与 - 一饮而尽/ node_modules / angular2 /芯'没有出口成员查看。ERROR在./src/app/components/access-directives/access-directives.ts
(1,20):错误TS2305:模块'的/ home /迪内希的/ dev / angular2种子与 - 一饮而尽/ node_modules / angular2 /芯'没有出口成员查看。ERROR在./src/app/components/access-data-bt-component/send-data.ts
(1,20):错误TS2305:模块'的/ home /迪内希的/ dev / angular2种子与 - 一饮而尽/ node_modules / angular2 /芯'没有出口成员查看。
解决方案
的 @View
装饰已被删除。通过 @View(...)
可以通过 @Component设置(...)
设置以及参数反正。
另请参阅结果
- https://github.com/angular/angular/issues/7363 结果
- https://github.com/angular/angular/issues/7658
@View not working after updating angular2 beta.8 to beta11. I am getting this error in termial
ERROR in ./~/ng2-bootstrap/components/datepicker/yearpicker.ts
(2,14): error TS2305: Module '"/home/dinesh/dev/angular2-seed-with-gulp/node_modules/angular2/core"' has no exported member 'View'.
ERROR in ./~/ng2-bootstrap/components/datepicker/monthpicker.ts
(2,14): error TS2305: Module '"/home/dinesh/dev/angular2-seed-with-gulp/node_modules/angular2/core"' has no exported member 'View'.
ERROR in ./src/app/components/subrouting/sub-routing.ts
(1,20): error TS2305: Module '"/home/dinesh/dev/angular2-seed-with-gulp/node_modules/angular2/core"' has no exported member 'View'.
ERROR in ./src/app/components/sub-routing-2/sub-routing-2.ts
(1,20): error TS2305: Module '"/home/dinesh/dev/angular2-seed-with-gulp/node_modules/angular2/core"' has no exported member 'View'.
ERROR in ./src/app/components/access-directives/access-directives.ts
(1,20): error TS2305: Module '"/home/dinesh/dev/angular2-seed-with-gulp/node_modules/angular2/core"' has no exported member 'View'.
ERROR in ./src/app/components/access-data-bt-component/send-data.ts
(1,20): error TS2305: Module '"/home/dinesh/dev/angular2-seed-with-gulp/node_modules/angular2/core"' has no exported member 'View'.
解决方案
The @View
decorator was removed. The parameters set by @View(...)
can be set by @Component(...)
as well anyway.
See also
- https://github.com/angular/angular/issues/7363
- https://github.com/angular/angular/issues/7658
这篇关于错误更新angular2测试后11后发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文