• 关于anguler运行出现Could not load /modules/.. route的问题


    F12查看页面报错

    ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(DataQueryModule)[ModalHelper -> NzModalService -> NzModalService -> NzModalService -> NzModalService -> NzModalService -> NzModalService]: 
      NullInjectorError: No provider for NzModalService!
    NullInjectorError: R3InjectorError(DataQueryModule)[ModalHelper -> NzModalService -> NzModalService -> NzModalService -> NzModalService -> NzModalService -> NzModalService]: 
      NullInjectorError: No provider for NzModalService!
        at NullInjector.get (core.js:11120)
        at R3Injector.get (core.js:11287)
        at R3Injector.get (core.js:11287)
        at R3Injector.get (core.js:11287)
        at NgModuleRef$1.get (core.js:25352)
        at R3Injector.get (core.js:11287)
        at NgModuleRef$1.get (core.js:25352)
        at R3Injector.get (core.js:11287)
        at NgModuleRef$1.get (core.js:25352)
        at R3Injector.get (core.js:11287)
        at resolvePromise (zone.js:1211)
        at resolvePromise (zone.js:1165)
        at zone.js:1278
        at _ZoneDelegate.invokeTask (zone.js:406)
        at Object.onInvokeTask (core.js:28679)
        at _ZoneDelegate.invokeTask (zone.js:405)
        at Zone.runTask (zone.js:178)
        at drainMicroTaskQueue (zone.js:585)

    后面查了一下,发现是node_moduls里面有不同版本的依赖

    找到自己的pack.json,看到系统是用哪个版本的, 把另外一个版本删除了即可

  • 相关阅读:
    txt换行追加写入
    np.unique( )的用法
    生成自己想要的任意颜色的图片
    183. 木材加工
    575. 字符串解码
    364. 接雨水 II
    255. Multi-string search
    433. 岛屿的个数
    591. 连接图 III
    918. 三数之和
  • 原文地址:https://www.cnblogs.com/lhll/p/16034839.html
Copyright © 2020-2023  润新知