[bug]: Cannot query field \"custom_attributes\" on type \"ProductInterface\"
See original GitHub issueDescribe the bug
I installed the last pwa studio version 12.2.0 in my local environment and connect whit Magento Commerce 2.4.3-p1 and sample data. When I navigate to some product I have an error with the GraphQL query of getProductDetailForProductPage. The error is Cannot query field "custom_attributes" on type "ProductInterface". And checking Magento Catalog_Product module, custom_attributes it’s not declared in Productinterface GraphQL.
To reproduce
Steps to reproduce the behavior:
- Install pwa studio version 12.2.0
- Install a Magento Commerce 2.4.3-p1
- Navigate to some producto page and enable networks tab on developer inspector
- Check request graphql?query=query+getProductDetailForProductPage
- See error
Expected behavior
I need to know how to proceed.
Screenshots
Possible solutions
Remove custom_attributes from default node_modules/@magento/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js or add this field in Magento by default
Debug Report
Paste the output of yarn build:report
, and any other context about the problem, here.
Please complete the following device information:
- Device [Ubuntu 20.04]:
- Browser [Chrome]:
- Browser Version [98.0.4758.80]:
- Magento Version [Magento Commerce 2.4.3-p1]:
Please let us know what packages this bug is in regards to:
-
venia-concept
-
venia-ui
-
pwa-buildpack
-
peregrine
-
pwa-devdocs
-
upward-js
-
upward-spec
-
create-pwa
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7
you need to update your composer.json in magento changing / adding : (for CE ) “magento/module-upward-connector”: “2.0.0”, “magento/pwa”: “0.1.0” then obviously php/bin upgrade , d:c and deploy content . and in your pwa folder git checkout main .
The problem was related to the cache of composer… I had to remove extemsions loads from path ext, and them run it this
composer require magento/pwa:0.1.0 --no-cache -W