-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial build fails #9764
Comments
I've had the same problem, it would seem that a I'm pretty sure that's not the best way to fix it, but at least it builds now. I've not launched the project yet though, so take that with a pinch of salt since it could completely break the storefront. |
The solution is to pinpoint the version of pnpm in
I'll close it here since there's already an issue in |
I'm attempting a fresh install of saleor and ran into the same issue. Maybe leave the issue open until it's solved to a point where new users no longer experience this? |
Connected |
saleor/saleor-platform#158 was merged, which means react-storefront was updated to the newest version. It applies a fix for pnpm issue. To fix your existing setup, please update submodule The issue should be solved, so I close this one. |
I have attempted installing of saleor both manually and using docker but ran into the same issue. [10/10] RUN pnpm turbo run build: #15 3.137 WARNING cannot find a .git folder. Falling back to manual file hashing (which may be slower). If you are running this build in a pruned directory, you can ignore this message. Otherwise, please initialize a git repository in the root of your monorepo #15 3.801 • Packages in scope: @saleor/checkout-storefront, @saleor/ui-kit, checkout, checkout-common, env-vars, eslint-config-checkout, saleor-app-checkout, storefront, tsconfig #15 3.801 • Running build in 9 packages #15 3.801 INFO • Remote caching disabled #15 3.804 checkout-common:build: cache miss, executing 95e4cbd41e2f5133 #15 3.804 @saleor/ui-kit:build: cache miss, executing 49fa3b6b10489787 #15 4.639 checkout-common:build: #15 4.639 checkout-common:build: > checkout-common@0.1.0 build /app/packages/checkout-common #15 4.639 checkout-common:build: > NODE_ENV=production rollup -c #15 4.639 checkout-common:build: #15 4.642 @saleor/ui-kit:build: #15 4.642 @saleor/ui-kit:build: > @saleor/ui-kit@0.0.0 build /app/packages/ui-kit #15 4.642 @saleor/ui-kit:build: > rollup -c #15 4.643 @saleor/ui-kit:build: #15 15.47 @saleor/ui-kit:build: #15 15.47 @saleor/ui-kit:build: src/index.ts → dist/cjs/index.js, dist/esm/index.js... #15 15.59 checkout-common:build: #15 15.59 checkout-common:build: src/index.ts → dist/esm/index.js, dist/cjs/index.js... #15 31.18 checkout-common:build: created dist/esm/index.js, dist/cjs/index.js in 15.5s #15 31.18 checkout-common:build: #15 31.18 checkout-common:build: ./dist/esm/index.d.ts → dist/index.d.ts... #15 31.38 checkout-common:build: created dist/index.d.ts in 201ms #15 45.55 @saleor/ui-kit:build: created dist/cjs/index.js, dist/esm/index.js in 30s #15 45.55 @saleor/ui-kit:build: #15 45.55 @saleor/ui-kit:build: ./dist/esm/index.d.ts → dist/index.d.ts... #15 45.94 @saleor/ui-kit:build: (!) Unresolved dependencies #15 45.94 @saleor/ui-kit:build: https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency #15 45.94 @saleor/ui-kit:build: @lib/globalTypes (imported by dist/esm/components/Checkbox/Checkbox.d.ts, dist/esm/components/Chip/Chip.d.ts, dist/esm/components/IconButton/IconButton.d.ts, dist/esm/components/InfoTip/InfoTip.d.ts, dist/esm/components/Radio/Radio.d.ts, dist/esm/components/Select/Select.d.ts, dist/esm/components/Switch/Switch.d.ts, dist/esm/components/TextInput/TextInput.d.ts) #15 45.94 @saleor/ui-kit:build: created dist/index.d.ts in 387ms #15 46.14 storefront:build: cache miss, executing bbcc621e1bc58df1 #15 46.15 @saleor/checkout-storefront:build: cache miss, executing 2ccef0d48a80f627 #15 46.89 @saleor/checkout-storefront:build: #15 46.89 @saleor/checkout-storefront:build: > @saleor/checkout-storefront@0.1.0 build /app/packages/checkout-storefront #15 46.89 @saleor/checkout-storefront:build: > NODE_ENV=production rollup -c #15 46.89 @saleor/checkout-storefront:build: #15 46.90 storefront:build: #15 46.90 storefront:build: > storefront@0.1.0 build /app/apps/storefront #15 46.90 storefront:build: > next build #15 46.90 storefront:build: #15 52.32 storefront:build: info - Loaded env from /app/apps/storefront/.env #15 52.82 @saleor/checkout-storefront:build: #15 52.82 @saleor/checkout-storefront:build: src/index.tsx → dist/esm/index.js... #15 52.91 storefront:build: Attention: Next.js now collects completely anonymous telemetry regarding usage. #15 52.91 storefront:build: This information is used to shape Next.js' roadmap and prioritize features. #15 52.91 storefront:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: #15 52.91 storefront:build: https://nextjs.org/telemetry #15 52.91 storefront:build: #15 53.61 storefront:build: info - Linting and checking validity of types... #15 127.6 storefront:build: #15 127.6 storefront:build: ./pages/[channel]/[locale]/account/orders/[token].tsx #15 127.6 storefront:build: 28:25 Warning: Forbidden non-null assertion. @typescript-eslint/no-non-null-assertion #15 127.6 storefront:build: #15 127.6 storefront:build: ./pages/[channel]/[locale]/account/register.tsx #15 127.6 storefront:build: 40:44 Warning: Forbidden non-null assertion. @typescript-eslint/no-non-null-assertion #15 127.6 storefront:build: 42:47 Warning: Forbidden non-null assertion. @typescript-eslint/no-non-null-assertion #15 127.6 storefront:build: #15 127.6 storefront:build: ./pages/_document.tsx #15 127.6 storefront:build: 11:17 Warning: Forbidden non-null assertion. @typescript-eslint/no-non-null-assertion #15 127.6 storefront:build: #15 127.6 storefront:build: ./components/ProductCard/ProductCard.tsx #15 127.6 storefront:build: 40:17 Warning: Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text #15 127.6 storefront:build: #15 127.6 storefront:build: ./components/productList/FilteredProductList/FilteredProductList.tsx #15 127.6 storefront:build: 147:32 Warning: Forbidden non-null assertion. @typescript-eslint/no-non-null-assertion #15 127.6 storefront:build: #15 127.6 storefront:build: ./lib/product.ts #15 127.6 storefront:build: 35:12 Warning: Forbidden non-null assertion. @typescript-eslint/no-non-null-assertion #15 127.6 storefront:build: #15 127.6 storefront:build: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules #15 127.6 storefront:build: info - Creating an optimized production build... #15 199.1 @saleor/checkout-storefront:build: (!) Plugin typescript: @rollup/plugin-typescript: outputToFilesystem option is defaulting to true. #15 199.1 @saleor/checkout-storefront:build: created dist/esm/index.js in 2m 26.2s #15 199.1 @saleor/checkout-storefront:build: #15 199.1 @saleor/checkout-storefront:build: ./dist/esm/index.d.ts → dist/index.d.ts... #15 199.3 @saleor/checkout-storefront:build: (!) Unresolved dependencies #15 199.3 @saleor/checkout-storefront:build: https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency #15 199.3 @saleor/checkout-storefront:build: @/checkout-storefront/providers/AppConfigProvider/types (imported by dist/esm/pages/Root.d.ts) #15 199.3 @saleor/checkout-storefront:build: created dist/index.d.ts in 210ms #15 199.9 saleor-app-checkout:build: cache miss, executing 0b325a84d29d9bbe #15 199.9 checkout:build: cache miss, executing 76db862455e6d9a2 #15 202.7 saleor-app-checkout:build: #15 202.7 saleor-app-checkout:build: > saleor-app-checkout@0.0.0 build /app/apps/saleor-app-checkout #15 202.7 saleor-app-checkout:build: > next lint --dir . --quiet && npm run i18n && next build #15 202.7 saleor-app-checkout:build: #15 202.8 checkout:build: #15 202.8 checkout:build: > checkout@0.1.0 build /app/apps/checkout #15 202.8 checkout:build: > react-scripts build #15 202.8 checkout:build: #15 203.2 saleor-app-checkout:build: info - Loaded env from /app/apps/saleor-app-checkout/.env #15 210.2 saleor-app-checkout:build: warn - You have enabled experimental features (esmExternals, externalDir) in next.config.js. #15 210.2 saleor-app-checkout:build: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. #15 210.2 saleor-app-checkout:build: #15 227.8 checkout:build: Creating an optimized production build... #15 238.8 storefront:build: info - Compiled successfully #15 238.8 storefront:build: info - Collecting page data... #15 259.0 storefront:build: info - Generating static pages (0/11) #15 260.8 storefront:build: info - Generating static pages (2/11) #15 260.9 storefront:build: info - Generating static pages (5/11) #15 261.0 storefront:build: info - Generating static pages (8/11) #15 261.1 storefront:build: info - Generating static pages (11/11) #15 261.2 storefront:build: info - Finalizing page optimization... #15 261.2 storefront:build: #15 261.5 storefront:build: Route (pages) Size First Load JS #15 261.5 storefront:build: ┌ ○ / 238 B 175 kB #15 261.5 storefront:build: ├ /_app 0 B 175 kB #15 261.5 storefront:build: ├ ● /[channel]/[locale] 509 B 263 kB #15 261.5 storefront:build: ├ λ /[channel]/[locale]/[sitemap] 256 B 175 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/account/addressBook 624 B 263 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/account/login 1.33 kB 189 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/account/orders 660 B 263 kB #15 261.5 storefront:build: ├ ● /[channel]/[locale]/account/orders/[token] 1.35 kB 264 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/account/preferences 1.62 kB 264 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/account/register 1.26 kB 189 kB #15 261.5 storefront:build: ├ ● /[channel]/[locale]/category/[slug] 1.02 kB 269 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/checkout 638 B 263 kB #15 261.5 storefront:build: ├ ● /[channel]/[locale]/collection/[slug] 904 B 269 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/order 494 B 263 kB #15 261.5 storefront:build: ├ ● /[channel]/[locale]/page/[slug] 955 B 264 kB #15 261.5 storefront:build: ├ ● /[channel]/[locale]/products/[slug] 4.01 kB 267 kB #15 261.5 storefront:build: ├ ○ /[channel]/[locale]/search 1.64 kB 264 kB #15 261.5 storefront:build: └ ○ /404 (1616 ms) 766 B 197 kB #15 261.5 storefront:build: └ css/d671ab48dc86a1f9.css 1.51 kB #15 261.5 storefront:build: + First Load JS shared by all 182 kB #15 261.5 storefront:build: ├ chunks/framework-ceb470d8f68752fc.js 45.5 kB #15 261.5 storefront:build: ├ chunks/main-2c4bd73a4a4b956c.js 35 kB #15 261.5 storefront:build: ├ chunks/pages/_app-f0878ee07f1c59cb.js 93.7 kB #15 261.5 storefront:build: ├ chunks/webpack-6ef43a8d4a395f49.js 999 B #15 261.5 storefront:build: └ css/12e26599b9ad2537.css 7.24 kB #15 261.5 storefront:build: #15 261.5 storefront:build: ƒ Middleware 21.8 kB #15 261.5 storefront:build: #15 261.5 storefront:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) #15 261.5 storefront:build: ○ (Static) automatically rendered as static HTML (uses no initial props) #15 261.5 storefront:build: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps) #15 261.5 storefront:build: #15 319.1 saleor-app-checkout:build: Attention: Next.js now collects completely anonymous telemetry regarding usage. #15 319.1 saleor-app-checkout:build: This information is used to shape Next.js' roadmap and prioritize features. #15 319.1 saleor-app-checkout:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: #15 319.1 saleor-app-checkout:build: https://nextjs.org/telemetry #15 319.1 saleor-app-checkout:build: #15 330.1 saleor-app-checkout:build: ✔ No ESLint warnings or errors #15 335.2 saleor-app-checkout:build: #15 335.2 saleor-app-checkout:build: > saleor-app-checkout@0.0.0 i18n #15 335.2 saleor-app-checkout:build: > npm run extract:i18n && npm run compile:i18n #15 335.2 saleor-app-checkout:build: #15 336.0 saleor-app-checkout:build: #15 336.0 saleor-app-checkout:build: > saleor-app-checkout@0.0.0 extract:i18n #15 336.0 saleor-app-checkout:build: > formatjs extract '{backend,config,content,frontend,graphql,pages,types,utils}/**/*.{js,jsx,ts,tsx}' --format transifex --id-interpolation-pattern '[folder]/[name]/[sha512:contenthash:base64:6]' --out-file content/locales/en.json #15 336.0 saleor-app-checkout:build: #15 352.4 checkout:build: The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process. #15 353.1 checkout:build: ELIFECYCLE Command failed with exit code 1. #15 353.3 checkout:build: ERROR: command finished with error: command (/app/apps/checkout) pnpm run build exited (1) #15 353.8 #15 353.8 command (/app/apps/checkout) pnpm run build exited (1) #15 353.8 Tasks: 4 successful, 5 total #15 353.8 Cached: 0 cached, 5 total #15 353.8 Time: 5m50.769s #15 353.8 #15 353.8 ERROR run failed: command exited (1) ------ executor failed running [/bin/sh -c pnpm turbo run build]: exit code: 1 ERROR: Service 'saleor-app-checkout' failed to build : Build failed |
pnpm start
• Packages in scope: @saleor/checkout-storefront, @saleor/ui-kit, checkout, checkout-common, env-vars, eslint-config-checkout, saleor-app-checkout, storefront, tsconfig Tasks: 0 successful, 1 total ERROR run failed: command exited (1) i cant get the react store front working either by manual installing or docker kindly could you help |
What I'm trying to achieve
I'm trying to test this platform as described in First Steps: https://saleor.io/open-source/
Steps to reproduce the problem
What I expected to happen
Build normally
Screenshots and logs
System information
Saleor version:
Operating system:
The text was updated successfully, but these errors were encountered: