Questions tagged [vue-storefront]

For questions related to the Vue Storefront project.

Vue Storefront is a standalone PWA, offline-ready storefront for eCommerce supporting multiple popular webshop backends through the API.

76 questions
21
votes
5 answers

How to access vue instance in Vuex

I declare a global variable in the main.js of the Vue.js project. Vue.prototype.$API = "myapihere" And I want to use this from everywhere. and it's work properly by using this.$API. But in Vuex it does not work. console.log(this.$API); Here…
Rohit Nishad
  • 2,570
  • 2
  • 22
  • 32
10
votes
1 answer

VueJS | Method "watch" has type "object" in the component definition

Currently I have following Watches in Product.vue file watch: { isOnline: { async handler (isOnline) { if (isOnline) { const maxQuantity = await this.getQuantity(); this.maxQuantity = maxQuantity; } …
Sizzling Code
  • 5,932
  • 18
  • 81
  • 138
5
votes
2 answers

Vue-storefront installation error. Can't build storefront npm

I have some questions according to the installation of Vue-storefront on my local. I am using Mac OS 10.13.4 and node version 8.11.5, npm version 5.6 But while building storefront npm, it returns an error. [Error: Can't build storefront npm. …
3
votes
0 answers

Internal Server Error on homepage in vue storefront

Got internal server error on the homepage during initial load. error log within the vue-storefront.log reports as follows: [search] Can not connect the vue-storefront-api / ElasticSearch instance! Error:…
supi
  • 2,172
  • 18
  • 15
3
votes
1 answer

how to integrate vuestorefront with shopify

I am trying to integrate vuestorefront with shopify but unable to understand proper way there are many repositories like vue storefront for front end https://github.com/DivanteLtd/vue-storefront vue storefront api for back end…
Talha Rahman
  • 720
  • 4
  • 12
  • 27
2
votes
2 answers

Must use import to load ES Module after creating vuestorefront project

At first, I created a vuestorefront nuxtjs project using the command npx @vue-storefront/cli generate store with Odoo integration After that, I created a .env file BASE_URL=http://localhost:8069/ SITE_URL=http://localhost:3000/ #…
2
votes
1 answer

is vue-storefront support (nuxtjs with typescript)?

I am trying to use @storefront-ui/nuxt inside a nuxtjs (with typescript) project. but this error show for me Could not find a declaration file for module '@storefront-ui/nuxt'.…
Developer22
  • 21
  • 1
  • 1
2
votes
0 answers

Vue.js server side rendering stop using inline CSS

Preface: Style loader reference: https://github.com/webpack-contrib/style-loader#linktag As per the documentation, style-loader allows the webpack to render tags in order to render the styling information. Main problem: Vue-style-loader is a forked…
2
votes
1 answer

How to extend core modules of Vue Storefront

I want to override an action from cart module store. I am trying to extend this CartModule by following this link Extending and Overriding Modules Doc I have created a file /src/modules/cart/index.ts with following code import {…
2
votes
2 answers

VueStoreFront: Custom module: state is updated, component not

I’m creating a custom module that fetches data in the “afterRegistration” hook and saves the result into the store. The state is updated (can see the update in VueDevTools), but the component has still the default state. What I’m doing wrong? //…
Kevin Gorjan
  • 1,272
  • 1
  • 17
  • 34
2
votes
1 answer

What are the requirements to submit a new module to vue-storefront?

I cannot find a module publishing guidelines for VueStoreFront. How can we announce/publish a new module for the platform? We have a module and would like it to be seen as "official" (and maybe advertised by VueStorefront staff, I don't know),…
Jan Myszkier
  • 2,714
  • 1
  • 16
  • 23
1
vote
1 answer

The extendRoutes function is not being called in nuxt.config.js

I've generated a store with Vue-Storefront, which uses Nuxt, and in the Layout and Routing documentation page, it is recommended to use extendRoutes as such: require("isomorphic-fetch"); import webpack from "webpack"; const platformENV =…
1
vote
1 answer

API-call via plugin to Server Middleware

I have configured a plugin and a custom Server Middleware extension. I am able to call functions via my plugin from the server middleware as seen in the snippet below: Plugin: async function getPriceInitiator() { const response = await…
Craws
  • 576
  • 4
  • 30
1
vote
1 answer

Error during the build on the Plesk server with my Nuxt app

I have a Vue Storefront 2 project with Magento 2 as it CMS. Locally everything runs fine. When I try to run NPM install on my Plesk server before I can build and deploy it, it gives the following error: npm ERR! code 1 npm ERR! path…
Craws
  • 576
  • 4
  • 30
1
vote
0 answers

Shopware pwa ERROR [MIDDLEWARE][DOMAINS] Cannot read properties of undefined (reading 'data')

shopware-pwa.config.js module.exports = { shopwareEndpoint: "https://s19157.creolineserver.com", shopwareAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", pwaHost: "https://s19157.creolineserver.com", shopwareDomainsAllowList: [ …
1
2 3 4 5 6