属性"provideStore"在类型"typeof StoreModule"上不存在 [英] Property 'provideStore' does not exist on type 'typeof StoreModule'

查看:58
本文介绍了属性"provideStore"在类型"typeof StoreModule"上不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为他们发布了一些重大更改,这是我收到的错误消息:

I reckon they published some breaking changes, this is the error message that I get:

类型'storeofule'上不存在属性'provideStore'.

Property 'provideStore' does not exist on type 'typeof StoreModule'.

我搜索了此错误消息,但未找到任何内容.不过,我想有一些我不知道的API更新.

I googled this error-message, but did not find anything. Nevertheless I guess there have been API-Updates that I am not aware of.

有人能指出我正确的方向吗?

Can anybody point me in the right direction?

推荐答案

已解决:

https://github.com/ngrx/store/issues/349

是的,它已被弃用,请改用"forRoot"

yes, it was deprecated, use "forRoot" instead

方法"provideStore"已重命名为"forRoot",以便人们更好地理解此方法的作用.

The method "provideStore" has been renamed to "forRoot", so that one better understands what this method does.

这篇关于属性"provideStore"在类型"typeof StoreModule"上不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆