Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/419.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 错误:Can';无法解析InMemoryStorageStrategy:(?)的所有参数_Javascript_Angular - Fatal编程技术网

Javascript 错误:Can';无法解析InMemoryStorageStrategy:(?)的所有参数

Javascript 错误:Can';无法解析InMemoryStorageStrategy:(?)的所有参数,javascript,angular,Javascript,Angular,在将版本从8更新到9之后,我在编译应用程序后遇到了这个错误 为了找到解决办法,我浪费了一整天 错误:如果没有任何代码示例,无法解析InMemoryStorageStrategy:(?)的所有参数。这很难回答。您可能缺少该服务上的@Injectable()装饰程序。请包含代码。我不知道它在哪个组件中抛出错误。编译应用程序后,它只会抛出此错误。错误:无法解析InMemoryStorageStrategy:(?)的所有参数。在GetUndercoratedInjectableFactory(网页包-i

在将版本从8更新到9之后,我在编译应用程序后遇到了这个错误

为了找到解决办法,我浪费了一整天


错误:如果没有任何代码示例,无法解析InMemoryStorageStrategy:(?)

的所有参数。这很难回答。您可能缺少该服务上的
@Injectable()
装饰程序。

请包含代码。我不知道它在哪个组件中抛出错误。编译应用程序后,它只会抛出此错误。错误:无法解析InMemoryStorageStrategy:(?)的所有参数。在GetUndercoratedInjectableFactory(网页包-internal:///./node_modules/@angular/core/fesm5/core.js:12269)在注射用除雾剂工厂(网页包-internal:///./node_modules/@位于providerToFactory的angular/core/fesm5/core.js:12259)(网页-internal:///./node_modules/@providerToRecord上的angular/core/fesm5/core.js:12324)(网页-internal:///./node_modules/@Argular/core/fesm5/core.js:12289)位于R3Injector.processProvider(网页包-internal:///./node_modules/@angular/core/fesm5/core.js:12186)另外,我已经验证了所有的服务类@Injectable()decorator都存在。另外,我们需要添加@Injectable()吗在一个模型类中?
InMemoryStorageStrategy
应该是你代码中的一个服务,我想?正如我所说,没有代码示例很难回答…不,在我的代码中没有叫做InMemoryStorageStrategy的服务。我可以理解你需要代码示例。但错误的是,它没有说任何特定的类。它只是简单地抛出了t他的错误:无法解析InMemoryStorageStrategy的所有参数。