Open dxrvip opened 2 years ago
@dxrvip I had this issue out of the box too -- I ended up going with a modified docker-compose.yml from here: https://github.com/saleor/saleor-platform/issues/121#issuecomment-1003376550 to get past it, but have ended up with a different issue running storefront that it cannot find Error: Cannot find module '@next/bundle-analyzer'
Same problem. Tried cloning from branch "3.0", but it just won't docker-compose up
and outputs the following errors:
ERROR: for saleor-platform_dashboard_1 UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for saleor-platform_storefront_1 UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for dashboard UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for storefront UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
Same problem here, when execute docker_compose build:
executor failed running [/bin/sh -c pnpm install]: exit code: 1 ERROR: Service 'react-storefront' failed to build : Build failed
i am also getting same issue. Anyone know how to fix it? i also tried on Ubuntu 20.04 and 22.04, same error
[saleor-platform_react-storefront 8/9] RUN pnpm install:
0 4.890 Progress: resolved 1, reused 0, downloaded 0, added 0
0 6.016 Progress: resolved 10, reused 0, downloaded 5, added 0
0 7.046 Progress: resolved 17, reused 0, downloaded 11, added 0
0 8.094 Progress: resolved 20, reused 0, downloaded 16, added 0
0 9.116 Progress: resolved 24, reused 0, downloaded 19, added 0
0 10.13 Progress: resolved 26, reused 0, downloaded 22, added 0
0 11.17 Progress: resolved 29, reused 0, downloaded 24, added 0
0 12.26 Progress: resolved 30, reused 0, downloaded 25, added 0
0 13.29 Progress: resolved 31, reused 0, downloaded 26, added 0
0 14.44 Progress: resolved 36, reused 0, downloaded 30, added 0
0 15.52 Progress: resolved 39, reused 0, downloaded 35, added 0
0 16.60 Progress: resolved 42, reused 0, downloaded 37, added 0
0 17.64 Progress: resolved 46, reused 0, downloaded 42, added 0
0 18.65 Progress: resolved 47, reused 0, downloaded 44, added 0
0 19.66 Progress: resolved 48, reused 0, downloaded 45, added 0
0 21.10 Progress: resolved 48, reused 0, downloaded 46, added 0
0 22.12 Progress: resolved 50, reused 0, downloaded 46, added 0
0 23.18 Progress: resolved 51, reused 0, downloaded 49, added 0
0 24.19 Progress: resolved 52, reused 0, downloaded 51, added 0
0 25.23 Progress: resolved 52, reused 0, downloaded 52, added 0
0 26.23 Progress: resolved 54, reused 0, downloaded 53, added 0
0 29.03 Progress: resolved 54, reused 0, downloaded 54, added 0
0 30.40 Progress: resolved 55, reused 0, downloaded 54, added 0
0 33.05 Progress: resolved 55, reused 0, downloaded 55, added 0
0 35.07 Progress: resolved 56, reused 0, downloaded 55, added 0
0 36.33 Progress: resolved 65, reused 0, downloaded 57, added 0
0 37.40 Progress: resolved 84, reused 0, downloaded 62, added 0
0 38.47 Progress: resolved 98, reused 0, downloaded 75, added 0
0 39.60 Progress: resolved 109, reused 0, downloaded 87, added 0
0 40.68 Progress: resolved 124, reused 0, downloaded 100, added 0
0 41.72 Progress: resolved 143, reused 0, downloaded 121, added 0
0 42.82 Progress: resolved 159, reused 0, downloaded 134, added 0
0 43.89 Progress: resolved 164, reused 0, downloaded 143, added 0
0 44.91 Progress: resolved 170, reused 0, downloaded 148, added 0
0 46.01 Progress: resolved 179, reused 0, downloaded 154, added 0
0 47.10 Progress: resolved 195, reused 0, downloaded 168, added 0
0 48.17 Progress: resolved 199, reused 0, downloaded 179, added 0
0 49.18 Progress: resolved 202, reused 0, downloaded 183, added 0
0 50.23 Progress: resolved 209, reused 0, downloaded 187, added 0
0 51.29 Progress: resolved 216, reused 0, downloaded 196, added 0
0 52.33 Progress: resolved 226, reused 0, downloaded 204, added 0
0 53.36 Progress: resolved 245, reused 0, downloaded 220, added 0
0 54.46 Progress: resolved 256, reused 0, downloaded 231, added 0
0 55.60 Progress: resolved 268, reused 0, downloaded 248, added 0
0 56.64 Progress: resolved 280, reused 0, downloaded 260, added 0
0 57.66 Progress: resolved 292, reused 0, downloaded 271, added 0
0 58.80 Progress: resolved 312, reused 0, downloaded 289, added 0
0 59.88 Progress: resolved 319, reused 0, downloaded 299, added 0
0 60.89 Progress: resolved 324, reused 0, downloaded 306, added 0
0 62.11 Progress: resolved 336, reused 0, downloaded 316, added 0
0 63.50 Progress: resolved 347, reused 0, downloaded 324, added 0
0 64.59 Progress: resolved 356, reused 0, downloaded 333, added 0
0 65.61 Progress: resolved 368, reused 0, downloaded 343, added 0
0 66.62 Progress: resolved 381, reused 0, downloaded 357, added 0
0 67.65 Progress: resolved 393, reused 0, downloaded 369, added 0
0 68.74 Progress: resolved 422, reused 0, downloaded 398, added 0
0 69.79 Progress: resolved 445, reused 0, downloaded 425, added 0
0 70.91 Progress: resolved 457, reused 0, downloaded 433, added 0
0 71.94 Progress: resolved 465, reused 0, downloaded 442, added 0
0 72.98 Progress: resolved 474, reused 0, downloaded 453, added 0
0 74.06 Progress: resolved 485, reused 0, downloaded 465, added 0
0 75.09 Progress: resolved 493, reused 0, downloaded 473, added 0
0 76.13 Progress: resolved 503, reused 0, downloaded 482, added 0
0 77.19 Progress: resolved 509, reused 0, downloaded 487, added 0
0 78.26 Progress: resolved 524, reused 0, downloaded 502, added 0
0 79.33 Progress: resolved 537, reused 0, downloaded 518, added 0
0 80.38 Progress: resolved 550, reused 0, downloaded 529, added 0
0 81.41 Progress: resolved 556, reused 0, downloaded 535, added 0
0 82.57 Progress: resolved 561, reused 0, downloaded 537, added 0
0 83.63 Progress: resolved 575, reused 0, downloaded 550, added 0
0 84.64 Progress: resolved 587, reused 0, downloaded 566, added 0
0 85.65 Progress: resolved 604, reused 0, downloaded 580, added 0
0 86.66 Progress: resolved 612, reused 0, downloaded 587, added 0
0 87.69 Progress: resolved 633, reused 0, downloaded 606, added 0
0 88.74 Progress: resolved 645, reused 0, downloaded 619, added 0
0 89.87 Progress: resolved 656, reused 0, downloaded 631, added 0
0 91.10 Progress: resolved 663, reused 0, downloaded 637, added 0
0 92.14 Progress: resolved 679, reused 0, downloaded 655, added 0
0 93.19 Progress: resolved 695, reused 0, downloaded 674, added 0
0 94.28 Progress: resolved 718, reused 0, downloaded 691, added 0
0 95.38 Progress: resolved 731, reused 0, downloaded 712, added 0
0 96.44 Progress: resolved 731, reused 0, downloaded 714, added 0
0 97.45 Progress: resolved 737, reused 0, downloaded 715, added 0
0 98.46 Progress: resolved 750, reused 0, downloaded 727, added 0
0 99.48 Progress: resolved 768, reused 0, downloaded 744, added 0
0 100.6 Progress: resolved 787, reused 0, downloaded 763, added 0
0 101.7 Progress: resolved 802, reused 0, downloaded 775, added 0
0 102.7 Progress: resolved 818, reused 0, downloaded 792, added 0
0 103.7 Progress: resolved 823, reused 0, downloaded 807, added 0
0 107.3 Progress: resolved 823, reused 0, downloaded 808, added 0
0 108.3 Progress: resolved 823, reused 0, downloaded 809, added 0
0 109.3 Progress: resolved 823, reused 0, downloaded 810, added 0
0 110.3 Progress: resolved 825, reused 0, downloaded 810, added 0
0 111.5 Progress: resolved 826, reused 0, downloaded 811, added 0
0 111.5 Packages: +817
0 111.5 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0 113.8 Progress: resolved 826, reused 0, downloaded 813, added 0
0 115.1 Packages are hard linked from the content-addressable store to the virtual store.
0 115.1 Content-addressable store is at: /root/.local/share/pnpm/store/v3
0 115.1 Virtual store is at: node_modules/.pnpm
0 115.1 Progress: resolved 826, reused 0, downloaded 813, added 1
0 116.3 Progress: resolved 826, reused 0, downloaded 813, added 88
0 117.3 Progress: resolved 826, reused 0, downloaded 813, added 202
0 118.4 Progress: resolved 826, reused 0, downloaded 813, added 302
0 120.1 Progress: resolved 826, reused 0, downloaded 813, added 365
0 121.2 Progress: resolved 826, reused 0, downloaded 813, added 477
0 122.2 Progress: resolved 826, reused 0, downloaded 813, added 577
0 123.3 Progress: resolved 826, reused 0, downloaded 813, added 666
0 124.3 Progress: resolved 826, reused 0, downloaded 813, added 694
0 125.3 Progress: resolved 826, reused 0, downloaded 813, added 752
0 126.4 Progress: resolved 826, reused 0, downloaded 813, added 792
0 127.8 Progress: resolved 826, reused 0, downloaded 813, added 807
0 128.8 Progress: resolved 826, reused 0, downloaded 813, added 815
0 132.6 Progress: resolved 826, reused 0, downloaded 814, added 815
0 133.6 Progress: resolved 826, reused 0, downloaded 815, added 817, done
0 135.2 .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
0 135.7 .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
0 135.7 .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting of core-js:
0 135.7 .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js
0 135.7 .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock
0 135.7 .../node_modules/core-js-pure postinstall: > https://paypal.me/zloirock
0 135.7 .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
0 135.7 .../node_modules/core-js-pure postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
0 135.7 .../node_modules/core-js-pure postinstall: Done
0 140.7
0 140.7 > react-storefront@0.1.0 prepare /app
0 140.7 > husky install
0 140.7
0 141.0 fatal: not a git repository (or any of the parent directories): .git
0 141.1
0 141.1 dependencies:
0 141.1 + @apollo/client 3.5.10
0 141.1 + @formatjs/swc-plugin 1.4.0
0 141.1 + @formatjs/ts-transformer 3.9.2
0 141.1 + @graphql-codegen/typescript-apollo-client-helpers 2.1.15
0 141.1 + @headlessui/react 1.5.0
0 141.1 + @heroicons/react 1.0.5
0 141.1 + @saleor/sdk 0.4.4
0 141.1 + @stripe/react-stripe-js 1.7.0
0 141.1 + @stripe/stripe-js 1.26.0
0 141.1 + @tailwindcss/aspect-ratio 0.4.0
0 141.1 + @tailwindcss/forms 0.5.0
0 141.1 + @tailwindcss/typography 0.5.2
0 141.1 + clsx 1.1.1
0 141.1 + dotenv 16.0.0
0 141.1 + dotenv-cli 5.1.0
0 141.1 + editorjs-blocks-react-renderer 1.2.4
0 141.1 + graphql 16.3.0
0 141.1 + next 12.1.4
0 141.1 + next-seo 5.3.0
0 141.1 + next-sitemap 2.4.3
0 141.1 + next-usequerystate 1.7.0
0 141.1 + react 18.0.0
0 141.1 + react-dom 18.0.0
0 141.1 + react-intl 5.24.6
0 141.1 + tailwind-scrollbar-hide 1.1.7
0 141.1
0 141.1 devDependencies:
0 141.1 + @formatjs/cli 4.8.2
0 141.1 + @graphql-codegen/add 3.1.1
0 141.1 + @graphql-codegen/cli 2.6.2
0 141.1 + @graphql-codegen/introspection 2.1.1
0 141.1 + @graphql-codegen/typescript 2.4.8
0 141.1 + @graphql-codegen/typescript-operations 2.3.5
0 141.1 + @graphql-codegen/typescript-react-apollo 3.2.11
0 141.1 + @next/bundle-analyzer 12.1.4
0 141.1 + @types/qs 6.9.7
0 141.1 + @types/react 17.0.43
0 141.1 + @typescript-eslint/eslint-plugin 5.17.0
0 141.1 + @typescript-eslint/parser 5.17.0
0 141.1 + autoprefixer 10.4.2
0 141.1 + eslint 8.12.0
0 141.1 + eslint-config-airbnb 19.0.4
0 141.1 + eslint-config-next 12.1.0
0 141.1 + eslint-config-prettier 8.4.0
0 141.1 + eslint-plugin-formatjs 3.0.0
0 141.1 + eslint-plugin-import 2.25.4
0 141.1 + eslint-plugin-jsx-a11y 6.5.1
0 141.1 + eslint-plugin-react 7.29.4
0 141.1 + eslint-plugin-react-hooks 4.3.0
0 141.1 + eslint-plugin-simple-import-sort 7.0.0
0 141.1 + husky 7.0.4
0 141.1 + pathpida 0.18.1
0 141.1 + postcss 8.4.12
0 141.1 + prettier 2.6.2
0 141.1 + react-hook-form 7.29.0
0 141.1 + react-use 17.3.2
0 141.1 + tailwindcss 3.0.23
0 141.1 + typescript 4.6.3
0 141.1
0 141.1 ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
0 141.1
0 141.1 .
0 141.1 ├─┬ @graphql-codegen/typescript-react-apollo
0 141.1 │ └── ✕ missing peer graphql-tag@^2.0.0
0 141.1 ├─┬ @graphql-codegen/typescript
0 141.1 │ └─┬ @graphql-codegen/visitor-plugin-common
0 141.1 │ └─┬ @graphql-tools/relay-operation-optimizer
0 141.1 │ └─┬ relay-compiler
0 141.1 │ └── ✕ unmet peer graphql@^15.0.0: found 16.3.0
0 141.1 ├─┬ @saleor/sdk
0 141.1 │ ├── ✕ unmet peer graphql@^15.5.0: found 16.3.0
0 141.1 │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
0 141.1 ├─┬ react-use
0 141.1 │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
0 141.1 │ └── ✕ unmet peer react-dom@"^16.8.0 || ^17.0.0": found 18.0.0
0 141.1 ├─┬ @apollo/client
0 141.1 │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
0 141.1 ├─┬ @stripe/react-stripe-js
0 141.1 │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
0 141.1 │ └── ✕ unmet peer react-dom@"^16.8.0 || ^17.0.0": found 18.0.0
0 141.1 ├─┬ editorjs-blocks-react-renderer
0 141.1 │ └─┬ html-react-parser
0 141.1 │ └── ✕ unmet peer react@"0.14 || 15 || 16 || 17": found 18.0.0
0 141.1 └─┬ react-intl
0 141.1 └── ✕ unmet peer react@"^16.3.0 || 17": found 18.0.0
0 141.1 Peer dependencies that should be installed:
0 141.1 graphql-tag@^2.0.0
0 141.1
failed to solve: executor failed running [/bin/sh -c pnpm install]: exit code: 1 root@saleor02:/opt/services/saleor-platform#`
Same issue
Mine is working just fine guys now and like I told before it is all about the dependencies. React, react-dom and graphsql. @karolkielecki what do you think? I cannot share just one file, because many dependencies has been changed
I have just done a fresh install and had the same issue.
I used the solution found here https://github.com/saleor/saleor/issues/9764#issuecomment-1127050108
Same issue and also work with https://github.com/saleor/saleor/issues/9764
New install and experienced same issue but solved it by adding RUN npm install -g pnpm@6.32.11
to file
react-storefront/Dockerfile.dev
as described in saleor/saleor#9764
12 37.25 ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
12 37.25
12 37.25 .
12 37.25 ├─┬ @graphql-codegen/typescript-react-apollo
12 37.25 │ └── ✕ missing peer graphql-tag@^2.0.0
12 37.25 ├─┬ @graphql-codegen/typescript
12 37.25 │ └─┬ @graphql-codegen/visitor-plugin-common
12 37.25 │ └─┬ @graphql-tools/relay-operation-optimizer
12 37.25 │ └─┬ relay-compiler
12 37.25 │ └── ✕ unmet peer graphql@^15.0.0: found 16.3.0
12 37.25 ├─┬ @saleor/sdk
12 37.25 │ ├── ✕ unmet peer graphql@^15.5.0: found 16.3.0
12 37.25 │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
12 37.25 ├─┬ react-use
12 37.25 │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
12 37.25 │ └── ✕ unmet peer react-dom@"^16.8.0 || ^17.0.0": found 18.0.0
12 37.25 ├─┬ @apollo/client
12 37.25 │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
12 37.25 ├─┬ @stripe/react-stripe-js
12 37.25 │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0": found 18.0.0
12 37.25 │ └── ✕ unmet peer react-dom@"^16.8.0 || ^17.0.0": found 18.0.0
12 37.25 ├─┬ editorjs-blocks-react-renderer
12 37.25 │ └─┬ html-react-parser
12 37.25 │ └── ✕ unmet peer react@"0.14 || 15 || 16 || 17": found 18.0.0
12 37.25 └─┬ react-intl
12 37.25 └── ✕ unmet peer react@"^16.3.0 || 17": found 18.0.0
12 37.25 Peer dependencies that should be installed:
12 37.25 graphql-tag@^2.0.0
12 37.25