Hi there,
I have configured the magento 2 integration with Vue Storefront and when starting the server I get this error:
Error during render : /error
TypeError: Cannot read property ‘storeId’ of undefined
at buildBaseStoreView (core/lib/multistore.ts:45:117)
at currentStoreView (core/lib/multistore.ts:59:59)
at _prepareCacheStorage (core/lib/storage-manager.ts:8:36)
at Object.init (core/lib/storage-manager.ts:31:38)
at Module…/core/modules/url/index.ts (core/modules/url/index.ts:6:43)
at webpack_require (webpack/bootstrap:25:0)
at Module…/src/modules/client.ts (src/modules/client.ts:2:0)
at webpack_require (webpack/bootstrap:25:0)
at Module…/core/modules-entry.ts (server-bundle.js:5861:76)
at webpack_require (webpack/bootstrap:25:0)
It is a multistore and the configuration for Storeviews is:
“storeViews”: {
“multistore”: true,
“commonCache”: false,
“mapStoreUrlsFor”: [
“en”,
“es”,
“nl”
],
“en”: {
“storeCode”: “default”,
“storeId”: 1,
“name”: “Default”,
“url”: “”,
“appendStoreCode”: false,
“elasticsearch”: {
“host”: “/api/catalog”,
“index”: “vue_storefront_catalog”
},
“tax”: {
“sourcePriceIncludesTax”: false,
“defaultCountry”: “ES”,
“defaultRegion”: “”,
“calculateServerSide”: true
},
“i18n”: {
“fullCountryName”: “United States”,
“fullLanguageName”: “English”,
“defaultLanguage”: “EN”,
“defaultCountry”: “US”,
“defaultLocale”: “en-US”,
“currencyCode”: “EUR”,
“currencySign”: “EUR”,
“dateFormat”: “HH:mm D-M-YYYY”
}
},
“es”: {
“storeCode”: “es”,
“storeId”: 4,
“name”: “ES”,
“url”: “/es”,
“appendStoreCode”: true,
“elasticsearch”: {
“host”: “/api/catalog”,
“index”: “vue_storefront_catalog_es”
},
“tax”: {
“sourcePriceIncludesTax”: false,
“defaultCountry”: “ES”,
“defaultRegion”: “”,
“calculateServerSide”: true
},
“i18n”: {
“fullCountryName”: “Spain”,
“fullLanguageName”: “Spanish”,
“defaultLanguage”: “ES”,
“defaultCountry”: “ES”,
“defaultLocale”: “es-ES”,
“currencyCode”: “EUR”,
“currencySign”: “EUR”,
“dateFormat”: “HH:mm D-M-YYYY”
}
},
“nl”: {
“storeCode”: “nl”,
“storeId”: 3,
“name”: “NL”,
“url”: “/nl”,
“appendStoreCode”: true,
“elasticsearch”: {
“host”: “/api/catalog”,
“index”: “vue_storefront_catalog_nl”
},
“tax”: {
“sourcePriceIncludesTax”: false,
“defaultCountry”: “NL”,
“defaultRegion”: “”,
“calculateServerSide”: true
},
“i18n”: {
“fullCountryName”: “Netherlands”,
“fullLanguageName”: “Dutch”,
“defaultCountry”: “NL”,
“defaultLanguage”: “NL”,
“defaultLocale”: “nl-NL”,
“currencyCode”: “EUR”,
“currencySign”: “EUR”,
“dateFormat”: “HH:mm D-M-YYYY”
},
I hope you can help. Thank you!