Hi Anudeep,
check your Dev dependencies, redux store file. Remember this can only be one!
for reference
https://github.com/richardedens/mendix-react-redux-boilerplate
hope it helps!!
cheers
Narendran J
use react hooks context, if the widget does not need a complex state management. i think this will be a best way.