[bug]: Cannot find field "newsletter_enabled" on type StoreConfig, while building the pwa-studio
See original GitHub issueDescribe the bug
I have installed all the dependencies for the installation and have cloned the repo and gave yarn install
.
I change the base url in the .env to my ip.
MAGENTO_BACKEND_URL=http://192.168.x.xx/
Then I ran the yarn build
command
Then this error is coming:
As of version 12.1.0, PWA Studio requires the appropriate PWA metapackage to be installed on the backend. For more information, refer to the 12.1.0 release notes here: https://github.com/magento/pwa-studio/releases/tag/v12.1.0 Error: Cannot query field “newsletter_enabled” on type “StoreConfig”. (… 1 errors total) at /var/www/html/magento243_v1/pwa-base/pwa-studio/packages/pwa-buildpack/lib/Utilities/graphQL.js:54:21 at processTicksAndRejections (internal/process/task_queues.js:95:5) at async module.exports (/var/www/html/magento243_v1/pwa-base/pwa-studio/packages/venia-concept/webpack.config.js:61:29) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed. Exit code: 1 Command: /usr/local/bin/node Arguments: /usr/share/yarn/lib/cli.js run build Directory: /var/www/html/magento243_v1/pwa-base/pwa-studio/packages/venia-concept Output: info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have also installed the metapackages from here Still no use the same error comes…
And also I tried with the default backend url MAGENTO_BACKEND_URL=https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/ and it this https://magento-venia-concept-xxxx.local.pwadev:8474/
But that page showed this error:
To reproduce
Steps to reproduce the behavior:
- Clone the repo
- cd dir
- yarn install
- Now change the value of .env file inside pwa-studio/packages/venia-concept/.env
- MAGENTO_BACKEND_URL=http://192.168.x.xx/
- yarn build
Expected behavior
It should have installed the theme and have shown on the frontend.
Screenshots
Possible solutions
No idea
Please complete the following device information:
- Device [e.g. iPhone6, PC, Mac, Pixel3]: PC
- Browser [e.g. Chrome, Safari]: Chrome
- Browser Version [e.g. 22]: Version 96.0.4664.45 (Official Build) (64-bit)
- Magento Version [e.g Magento Commerce 2.4]: Magento Community 2.4.3
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
- Comments:13 (2 by maintainers)
in magento root :
composer require magento/pwa
then :php bin/magento module:enable --clear-static-content Magento_ContactGraphQlPwa
php bin/magento module:enable --clear-static-content Magento_NewsletterGraphQlPwa
php bin/magento module:enable --clear-static-content Magento_QuoteGraphQlPwa
Also Magento_QuoteGraphQlPwa seems to have been removed and merged into core https://github.com/magento/magento2-pwa/commit/96c5f5f2ed31865f0b87f096221ddb9245f194da