Skip to main content
added 18 characters in body
Source Link
sumeet bajaj
  • 1.3k
  • 15
  • 50

We are using Magento 2.4.5

Steps to install PWA -

1 - git clone https://github.com/magento-research/pwa-studio.githttps://github.com/magento-research/pwa-studio.git

2 - Install yarn from pwa-studio root directory yarn installyarn install

3 - Create the .env file at location pwa-studio\packages\venia-concept\ using following command MAGENTO_BACKEND_URL="https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/" yarn buildpack create-env-file packages/venia-concept

MAGENTO_BACKEND_URL="https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/" yarn buildpack create-env-file packages/venia-concept

4 - export NODE_OPTIONS=--openssl-legacy-provider export NODE_OPTIONS=--openssl-legacy-provider

5 - npx browserslist@latest --update-dbnpx browserslist@latest --update-db

6 - Generate SSL Certificate using yarn buildpack create-custom-origin packages/venia-conceptyarn buildpack create-custom-origin packages/venia-concept

7 - yarn run buildyarn run build

then getting this error on command -

TypeError: Cannot read properties of undefined (reading 'storeConfig')
    at /var/www/html/magento245/pwa-studio/packages/pwa-buildpack/lib/Utilities/graphQL.js:73:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/var/www/html/magento245/pwa-studio/packages/venia-concept/webpack.config.js:61:22)
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/bin/node
Arguments: /usr/share/yarn/lib/cli.js run build
Directory: /var/www/html/magento245/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.

We are using Magento 2.4.5

Steps to install PWA -

1 - git clone https://github.com/magento-research/pwa-studio.git

2 - Install yarn from pwa-studio root directory yarn install

3 - Create the .env file at location pwa-studio\packages\venia-concept\ using following command MAGENTO_BACKEND_URL="https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/" yarn buildpack create-env-file packages/venia-concept

4 - export NODE_OPTIONS=--openssl-legacy-provider

5 - npx browserslist@latest --update-db

6 - Generate SSL Certificate using yarn buildpack create-custom-origin packages/venia-concept

7 - yarn run build

then getting this error on command -

TypeError: Cannot read properties of undefined (reading 'storeConfig')
    at /var/www/html/magento245/pwa-studio/packages/pwa-buildpack/lib/Utilities/graphQL.js:73:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/var/www/html/magento245/pwa-studio/packages/venia-concept/webpack.config.js:61:22)
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/bin/node
Arguments: /usr/share/yarn/lib/cli.js run build
Directory: /var/www/html/magento245/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.

We are using Magento 2.4.5

Steps to install PWA -

1 - git clone https://github.com/magento-research/pwa-studio.git

2 - Install yarn from pwa-studio root directory yarn install

3 - Create the .env file at location pwa-studio\packages\venia-concept\ using following command

MAGENTO_BACKEND_URL="https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/" yarn buildpack create-env-file packages/venia-concept

4 - export NODE_OPTIONS=--openssl-legacy-provider

5 - npx browserslist@latest --update-db

6 - Generate SSL Certificate using yarn buildpack create-custom-origin packages/venia-concept

7 - yarn run build

then getting this error on command -

TypeError: Cannot read properties of undefined (reading 'storeConfig')
    at /var/www/html/magento245/pwa-studio/packages/pwa-buildpack/lib/Utilities/graphQL.js:73:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/var/www/html/magento245/pwa-studio/packages/venia-concept/webpack.config.js:61:22)
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/bin/node
Arguments: /usr/share/yarn/lib/cli.js run build
Directory: /var/www/html/magento245/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.
Source Link
sumeet bajaj
  • 1.3k
  • 15
  • 50

Magento 2 PWA TypeError: Cannot read properties of undefined (reading 'storeConfig')

We are using Magento 2.4.5

Steps to install PWA -

1 - git clone https://github.com/magento-research/pwa-studio.git

2 - Install yarn from pwa-studio root directory yarn install

3 - Create the .env file at location pwa-studio\packages\venia-concept\ using following command MAGENTO_BACKEND_URL="https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/" yarn buildpack create-env-file packages/venia-concept

4 - export NODE_OPTIONS=--openssl-legacy-provider

5 - npx browserslist@latest --update-db

6 - Generate SSL Certificate using yarn buildpack create-custom-origin packages/venia-concept

7 - yarn run build

then getting this error on command -

TypeError: Cannot read properties of undefined (reading 'storeConfig')
    at /var/www/html/magento245/pwa-studio/packages/pwa-buildpack/lib/Utilities/graphQL.js:73:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/var/www/html/magento245/pwa-studio/packages/venia-concept/webpack.config.js:61:22)
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/bin/node
Arguments: /usr/share/yarn/lib/cli.js run build
Directory: /var/www/html/magento245/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.