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,看到系统是用哪个版本的, 把另外一个版本删除了即可