question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug]: Cannot find field "newsletter_enabled" on type StoreConfig, while building the pwa-studio

See original GitHub issue

Describe 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: image

To reproduce

Steps to reproduce the behavior:

  1. Clone the repo
  2. cd dir
  3. yarn install
  4. Now change the value of .env file inside pwa-studio/packages/venia-concept/.env
  5. MAGENTO_BACKEND_URL=http://192.168.x.xx/
  6. yarn build

Expected behavior

It should have installed the theme and have shown on the frontend.

Screenshots

Screenshot from 2021-11-19 14-06-35

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:closed
  • Created 2 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

31reactions
Watch3rukcommented, Nov 23, 2021

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

0reactions
danmooney2commented, Aug 26, 2022

Also Magento_QuoteGraphQlPwa seems to have been removed and merged into core https://github.com/magento/magento2-pwa/commit/96c5f5f2ed31865f0b87f096221ddb9245f194da

Read more comments on GitHub >

github_iconTop Results From Across the Web

Magento 2 - Cannot find field "newsletter_enabled" on type ...
I have installed pwa-studio by following magento pwa docs. ... Error: Cannot query field "newsletter_enabled" on type "StoreConfig". (.
Read more >
Magento 2 - Cannot find field "newsletter_enabled" on type ...
Solution:- Run below command in Magento root which in define in .env file of PWA setup, In my case I used “MAGENTO_BACKEND_URL=https ...
Read more >
Newest 'pwa' Questions - Magento Stack Exchange
Magento 2 - Cannot find field "newsletter_enabled" on type StoreConfig pwa-studio. I have installed pwa-studio by following magento pwa docs. Now when I...
Read more >
Pwa Studio Versions - Open Source Agenda
View the latest Pwa Studio versions. ... Bug, Static build failures in magento-commerce/venia-sample-data-modules repo, 21. Bug, [bug]: product_url_suffix ...
Read more >
availableStores query | Commerce Web APIs - Adobe Developer
Attribute Data Type Description Defa... base_url String The store's fully‑qualified base URL http... catalog_default_sort_by String The default sort order of the search results list positi... contact_enabled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found