Got stuck with sudden StoreStateProvider error while running any Gatsby command locally?
Here’s how to fix it quickly:
cd yourproject/ npm uninstall react react-dom gatsby npm install react react-dom gatsby
That should fix the issue. However, if you still facing the error.
Try deleting the node_modules and install the packages again
rm node_modules npm install