在 AppModule 中添加import { StoreDevtoolsModule } from '@ngrx/store-devtools';
版本8.6.0
后面临循环依赖问题。
所有与商店相关的软件包都在同一版本中。
Uncaught Error: Provider parse errors:
Cannot instantiate cyclic dependency! Store ("[ERROR ->]"): in NgModule AppModule in ./AppModule@-1:-1
at NgModuleProviderAnalyzer.push.../../node_modules/@angular/compiler/fesm5/compiler.js.NgModuleProviderAnalyzer.parse (compiler.js:11445)
at NgModuleCompiler.push.../../node_modules/@angular/compiler/fesm5/compiler.js.NgModuleCompiler.compile (compiler.js:22029)
at JitCompiler.push.../../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModule (compiler.js:27402)
at compiler.js:27361
at Object.then (compiler.js:2411)
at JitCompiler.push.../../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:27359)
at JitCompiler.push.../../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler.compileModuleAsync (compiler.js:27319)
at CompilerImpl.push.../../node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js.CompilerImpl.compileModuleAsync (platform-browser-dynamic.js:143)
at compileNgModuleFactory__PRE_R3__ (core.js:26576)
at PlatformRef.push.../../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModule (core.js:26790)
有什么建议可以解决这个问题吗?