我不知道是什么导致了这个错误。当我运行ionic server命令时,它将显示以下运行时错误。 Error: Encountered undefined provider!Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts filesNT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Ch
Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files@ zone.js:424drainMicroTaskQueue @ zone.js:584app.module.ts :模块ts文件string;
this.test = "Prav";
下面是我在Angular / TypeScript应用程序中遇到的一个无用的错误。在有人纠正错误消息之前,我们能做些什么呢?最有可能导致这种情况发生的情况是什么?Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files
设置:有一个api,其中包含一个文件夹foo和bar。这些文件夹将它们的所有公共内容导出到本地index.ts,这只会通过export * from [...]将公共内容再导出,以使其更加方便。在我的示例中,存在一个循环依赖关系,因为foo.ts需要bar的一部分,反之亦然--和我完全理解为什么是。见下面的截图:问题:
在一个拥