Error: Could not find “store“ in the context of “Connect(PuzzleCardPageTest)“. Either wrap the root

场景:

在学习dva时候,遇到的问题。

问题描述:

Error: Could not find "store" in the context of "Connect(PuzzleCardPageTest)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(PuzzleCardPageTest

问题原因:

目录名称写错了,models 写成了model,导致出现报错的情况

解决方法:

将model文件夹名称改为models,问题就解决了!


版权声明:本文为qq_39840183原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。