angular2:错误:(62,33)TS2339:类型'typeof Injector'上不存在属性'resolveAndCreate'

born2net

从ng2 beta 17开始,我得到:错误:(62,33)TS2339:类型'typeof Injector'上不存在属性'resolveAndCreate'。

  var injector = Injector.resolveAndCreate(
        [
            TodoService,
            TodoAction,
            HTTP_PROVIDERS,
            TodoStatsModel,
            provide(CommBroker, {useClass: CommBroker}),
            provide(AppStore, {useValue: this.appStore})
        ]);

我找不到解决方法的示例。任何帮助表示赞赏

regadrs

肖恩

born2net

找到了:

var injector = ReflectiveInjector.resolveAndCreate(
        [
            TodoService,
            TodoAction,
            HTTP_PROVIDERS,
            TodoStatsModel,
            provide(CommBroker, {useClass: CommBroker}),
            provide(AppStore, {useValue: this.appStore})
        ]);
    this.service = injector.get(TodoService);

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

类型“typeof import().ts”上不存在属性“schedule”

来自分类Dev

属性“ render”在类型“ typeof __React”上不存在

来自分类Dev

属性“ interval”在类型“ typeof Observable”上不存在

来自分类Dev

角8:属性“ of”在类型“ typeof Observable”上不存在

来自分类Dev

属性“ FC”在类型“ typeof React”上不存在

来自分类Dev

ABP属性“ tz”在类型“ typeof moment”上不存在

来自分类Dev

类型“ typeof Intl”上不存在属性“ RelativeTimeFormat”

来自分类Dev

“typeof 控制器”类型上不存在属性

来自分类Dev

类型“typeof FactoryMethod”上不存在属性“propTypes”

来自分类Dev

类型“typeof Validators”上不存在属性“min”

来自分类Dev

类型“typeof client”上不存在属性“calendar”

来自分类Dev

类型'typeof NgbModule'.ts(2339)上不存在属性'forRoot'

来自分类Dev

属性'Ripple'在类型'typeof TouchableNativeFeedback'.ts(2339)上不存在

来自分类Dev

类型“typeof FieldValue”.ts(2339) 上不存在属性“增量”

来自分类Dev

错误 TS2339:类型“Angular2”上不存在属性“”

来自分类Dev

属性'forkJoin'在'typeof observable'类型上不存在-angular2

来自分类Dev

Angular 10:类型“ typeof Dish”上不存在属性“ comments”

来自分类Dev

Ionic 2 RC0属性'tz'在'typeof moment'类型上不存在

来自分类Dev

[错误]:类型'typeof Deno'不存在属性'openPlugin'

来自分类Dev

React Ionic属性'initializeApp'在'typeof import(/././ projectfolder / node_modules / firebase')类型上不存在

来自分类Dev

属性“ x”在类型“ typeof Socket”上不存在,尽管我已声明

来自分类Dev

属性 'DecalGeometry' 在类型 'typeof "..node_modules/@types/three/index"' 上不存在

来自分类Dev

类型'typeof对象上不存在typescript

来自分类Dev

错误:'错误 TS2339:'Response' 类型上不存在属性 'data'。- Angular

来自分类Dev

TS2339:类型“{}”上不存在属性“props”

来自分类Dev

类型'typeof ...'不存在TypeScript'...'

来自分类Dev

错误 TS:2339 类型 {} 上不存在属性“项目”

来自分类Dev

打字稿编译错误:类型'typeof e'不存在属性'bodyParser'

来自分类Dev

错误TS2339:类型“响应”上不存在属性“结果”

Related 相关文章

  1. 1

    类型“typeof import().ts”上不存在属性“schedule”

  2. 2

    属性“ render”在类型“ typeof __React”上不存在

  3. 3

    属性“ interval”在类型“ typeof Observable”上不存在

  4. 4

    角8:属性“ of”在类型“ typeof Observable”上不存在

  5. 5

    属性“ FC”在类型“ typeof React”上不存在

  6. 6

    ABP属性“ tz”在类型“ typeof moment”上不存在

  7. 7

    类型“ typeof Intl”上不存在属性“ RelativeTimeFormat”

  8. 8

    “typeof 控制器”类型上不存在属性

  9. 9

    类型“typeof FactoryMethod”上不存在属性“propTypes”

  10. 10

    类型“typeof Validators”上不存在属性“min”

  11. 11

    类型“typeof client”上不存在属性“calendar”

  12. 12

    类型'typeof NgbModule'.ts(2339)上不存在属性'forRoot'

  13. 13

    属性'Ripple'在类型'typeof TouchableNativeFeedback'.ts(2339)上不存在

  14. 14

    类型“typeof FieldValue”.ts(2339) 上不存在属性“增量”

  15. 15

    错误 TS2339:类型“Angular2”上不存在属性“”

  16. 16

    属性'forkJoin'在'typeof observable'类型上不存在-angular2

  17. 17

    Angular 10:类型“ typeof Dish”上不存在属性“ comments”

  18. 18

    Ionic 2 RC0属性'tz'在'typeof moment'类型上不存在

  19. 19

    [错误]:类型'typeof Deno'不存在属性'openPlugin'

  20. 20

    React Ionic属性'initializeApp'在'typeof import(/././ projectfolder / node_modules / firebase')类型上不存在

  21. 21

    属性“ x”在类型“ typeof Socket”上不存在,尽管我已声明

  22. 22

    属性 'DecalGeometry' 在类型 'typeof "..node_modules/@types/three/index"' 上不存在

  23. 23

    类型'typeof对象上不存在typescript

  24. 24

    错误:'错误 TS2339:'Response' 类型上不存在属性 'data'。- Angular

  25. 25

    TS2339:类型“{}”上不存在属性“props”

  26. 26

    类型'typeof ...'不存在TypeScript'...'

  27. 27

    错误 TS:2339 类型 {} 上不存在属性“项目”

  28. 28

    打字稿编译错误:类型'typeof e'不存在属性'bodyParser'

  29. 29

    错误TS2339:类型“响应”上不存在属性“结果”

热门标签

归档