更新angular2 Beta 11后发生错误
发布时间:2020-12-17 17:01:25 所属栏目:安全 来源:网络整理
导读:更新angular2 beta.8到beta11后@View无法正常工作.我在终结时遇到这个错误 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
更新angular2 beta.8到beta11后@View无法正常工作.我在终结时遇到这个错误
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'. 解决方法
@View装饰器已被删除. @View(…)设置的参数也可以由@Component(…)设置.
也可以看看 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |