Fresh B2C project cannot resolve the Store Name

linmartins
linmartins Senior Developer Posts: 1 🧑🏻‍🚀 - Cadet

Hello there.

I have installed a b2c version on my local and after to followed the steps I cannot run the store properly because my installation get an error:

data/vendor/spryker-shop/store-widget/src/SprykerShop/Yves/StoreWidget/Plugin/ShopApplication/StoreApplicationPlugin.php

        $storeNames = $this->getFactory()->getStoreStorageClient()->getStoreNames();        if ($storeName) {            if (in_array($storeName, $storeNames, true)) {                return $storeName;            }        }         $storeName = $this->getFactory()->getSessionClient()->get(static::SESSION_STORE);        if ($storeName) {            return $storeName;        }         if (defined('APPLICATION_STORE')) {            return APPLICATION_STORE;        }         $defaultStoreName = current($storeNames);         if (!$defaultStoreName) {            throw new Exception('Cannot resolve store');        }         return $defaultStoreName;    }     /**     * @return string|null     */    protected function getStoreRequestUrlParameter(): ?string    {        $requestStack = $this->getFactory()->getRequestStack();         if ($requestStack->getCurrentRequest() === null) {            $requestStack = $this->getFactory()->createRequestStack();            $requestStack->push(Request::createFromGlobals());        }         /** @var \Symfony\Component\HttpFoundation\Request $currentRequest */        $currentRequest = $requestStack->getCurrentRequest(); 

Arguments

  1. "Cannot resolve store"