Installing vue-storefront dependencies error

Hi Team,

Have tried to install vue-storefront but i get some package dependency error
and sometime successfully installed but it load localhost:3000/error

Hi @gsankar28 it’s extremely difficult to guess the issues you’re facing without the error log provided :slight_smile: it should be in the var/log or var/installer as far as I remember

@pkarw
Elasticsearch WARNING: 2019-10-25T11:36:58Z
Unable to revive connection: http://localhost:9200/

@gsankar28 It’s seems like problem with your ElasticSearch connect.
Please verify first, Is it working correctly?
You may easily check with below chrome extension.https://chrome.google.com/webstore/detail/elasticsearch-head/ffmkiejjmecolpfloofpjologoblkegm

@chirag.viradiya
Thank you very much

Connected eastic search
now running the command “yarn restore”

getting below errors

_type: ‘product’,
_id: ‘1454’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1459’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1461’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1424’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1418’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1427’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1425’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1416’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1421’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1407’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1500’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1492’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1472’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1476’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1473’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1539’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1537’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1525’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1510’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1512’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1519’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1515’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1504’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1506’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1639’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1642’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1623’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1616’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1630’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1615’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1626’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1610’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1613’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1617’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1398’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1399’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1394’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1374’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1380’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1383’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1372’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1367’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2038’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2043’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2046’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2034’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2025’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2031’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2012’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2014’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘2011’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1995’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1956’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1999’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1997’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1989’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1986’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1979’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1985’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }
{ _index: ‘vue_storefront_catalog_temp’,
_type: ‘product’,
_id: ‘1973’,
status: 400,
error:
{ type: ‘illegal_argument_exception’,
reason: ‘Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]’ } }

Done in 17.34s.

Please check and help me on thiis

@gsankar28
You have to check first is data is imported in ES
If not than follow below steps to import from Magento To ES

  1. Go to your vue-storefront-api directory
  2. Verify your magento configuration in config/local.json of your vue-storefront-api
"magento2": {
    "imgUrl": "http://localhost:8080/media/catalog/product",
    "assetPath": "/../var/magento2-sample-data/pub/media",
    "api": {
      "url": "http://demo-magento2.vuestorefront.io/rest",
      "consumerKey": "byv3730rhoulpopcq64don8ukb8lf2gq",
      "consumerSecret": "u9q4fcobv7vfx9td80oupa6uhexc27rb",
      "accessToken": "040xx3qy7s0j28o3q0exrfop579cy20m",
      "accessTokenSecret": "7qunl3p505rubmr7u1ijt7odyialnih9"
    }
  },
  1. Now, execute command to import data yarn mage2vs import

Let me know if still having issue with data import

@chirag.viradiya

We get below error when we use yarn mage2vs import

Unhandled Rejection at: Promise [object Promise], reason: Error: [illegal_argument_exception] Rejecting mapping update to [vue_storefront_catalog_1572603802] as the final mapping would have more than 1 type: [product, taxrule] :: {“path”:"/vue_storefront_catalog_1572603802/_mapping/taxrule",“query”:{},“body”:"{“properties”:{“id”:{“type”:“long”},“rates”:{“properties”:{“rate”:{“type”:“float”}}}}}",“statusCode”:400,“response”:"{“error”:{“root_cause”:[{“type”:“illegal_argument_exception”,“reason”:“Rejecting mapping update to [vue_storefront_catalog_1572603802] as the final mapping would have more than 1 type: [product, taxrule]”}],“type”:“illegal_argument_exception”,“reason”:“Rejecting mapping update to [vue_storefront_catalog_1572603802] as the final mapping would have more than 1 type: [product, taxrule]”},“status”:400}"}