Questions tagged [pwa-studio]

12 questions
1
vote
1 answer

I want re-add the animate-bounce class whenever the itemCount increases it's value

I want to add class again and again on click handleClick in minicart I got two separate components one component contain the handleClick and other component is the minicart. Is there any way I can do this? I am trying this code on handleClick but…
0
votes
1 answer

PWA Studio Create Review Mutation failed

I have this mutation to create the product review which is working fine but not able to integrate into the form does anyone how I can fix that ? mutation { createProductReview( input: { sku: "Samsung S21 Ultra", nickname: "Test", …
0
votes
0 answers

how can i solve pwa-studio yarn build callback error?

when i run command yarn build in my projrct i fetch error like this /pwa-studio/node_modules/loader-runner/lib/LoaderRunner.js:106 throw new Error("callback(): The callback was already called. when i run command yarn build in my projrct i fetch…
0
votes
1 answer

Error of applied gift cart on local PWA setup

My local setup of venia-ui pwa is throwing an error : Cannot query field "applied_gift_cards" on type "Cart". The same setup without any difference in the code is working when the code is pushed onto the server , the error justify itself as there is…
0
votes
0 answers

| PWA studio x magento 2 | Request for the "total pages" in category page return everytime "1"

When I display all my products in my category page, I have 20 products. But in the category I have 108 products, so there is supposed to be several page for this category, but I don't have the pagination buttons. I search in the code and I found…
Yoyo
  • 1
  • 2
0
votes
0 answers

Magento 2 PWA invalid json response body at http://localhost/graphql reason: Unexpected token < in JSON at position error occur while setup PWA studio

I got the below error while setup PWA with Magento 2 when I run the yarn build command. Magento version: 2.4.4 PWA Version: ^0.4.0 PHP version: 8.1 Node Js Version: v16.19.0 Yarn Version: 1.22.19 FetchError: invalid json response body at…
0
votes
0 answers

PWA studio extend paymentmethods option from my own package without changing the Venia-ui source code

I would like to extend the CheckoutPage/PaymentInformation/paymentMethods.js component from my own package so that it can be used without having to manually change the source code from venia-ui. I can change inside the component by intercepting to a…
0
votes
1 answer

How can I return component and custom code in If condition in react js?

import { fullPageLoadingIndicator } from '../LoadingIndicator'; if (placeOrderLoading){ return fullPageLoadingIndicator; } I want to add this in the return as well window.scrollTo({ top: 0, behavior: 'smooth' }); for example this…
0
votes
0 answers

Magento 2: My Headless PWA store front guest and registered customer cart redirect to magento checkout page but need to know how we redirect

Hi I have a website which have PWA Storefront with Magento 2.4.4 version. Below is my requirement: I added product to the cart and set billing and shipping address also I selected the shipping method in PWA Store front. For payment selection I want…
0
votes
1 answer

useRef in
Component | Informed | PWA Studio | React

I need to execute the form submit using useRef(). I'm trying to reference the component provided by 'informed' (PWA Studio forms lib), but the reference doesn't work.The reference isn't work to informed Form but I don't know why. I tried the same…
0
votes
0 answers

Click listener firing multiple times in react

I am working on a magento 2 PWA studio project and a click listener seems to be firing multiple times. I have two languages in website. On the first one, the click listener fires fine. When i switch to the second language, it fires multiple times.…
LosMos
  • 119
  • 9
0
votes
2 answers

how to call graphql in reactjs component (magento 2 pwa)

I'm not familiar with reactjs, i'm try to create a new custom react js componet in magento 2 pwa studio to call a custom graphql and write out the response, the following it my trial. import React from 'react'; import { FormattedMessage, useIntl }…
hkguile
  • 4,235
  • 17
  • 68
  • 139