Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

angular

ngrx

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

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

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?

like image 829
Tobias Gassmann Avatar asked Jul 31 '17 09:07

Tobias Gassmann


1 Answers

Solved it:

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

yes, it was deprecated, use "forRoot" instead

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

like image 92
Tobias Gassmann Avatar answered Oct 26 '22 05:10

Tobias Gassmann