To fix the error, do the following:
Open the project settings and select the "Stores" tab.
Activate and set up the required store.