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.

next.js bigcommerce demo installation broken

See original GitHub issue

Bug report

Describe the bug

Bug in installing the demo one click install with bigcommerce

To Reproduce

Use one click installer with bigcommerce in australia

Expected behavior

working demo

Screenshots

21:01:31 Cloning github.com/Hewlbern/commerce (Branch: master, Commit: 0589ff7)
21:01:32 Cloning completed in 871ms
21:01:32 Analyzing source code…
21:01:33 Installing build runtime…
21:01:34 Build runtime installed: 511.926ms
21:01:34 Looking up build cache…
21:01:34 Build cache not found
21:01:35 Installing dependencies…
21:01:35 yarn install v1.22.4
21:01:35 [1/4] Resolving packages…
21:01:35 [2/4] Fetching packages…
21:01:44 info fsevents@2.1.3: The platform “linux” is incompatible with this module.
21:01:44 info “fsevents@2.1.3” is an optional dependency and failed compatibility check. Excluding it from installation.
21:01:44 [3/4] Linking dependencies…
21:01:44 warning " > @bigcommerce/storefront-data-hooks@1.0.2" has incorrect peer dependency “react@>=17”.
21:01:44 warning " > @vercel/fetch@6.1.0" has unmet peer dependency “@types/node-fetch@2”.
21:01:44 warning " > @vercel/fetch@6.1.0" has unmet peer dependency “node-fetch@2”.
21:01:44 warning “@bigcommerce/storefront-data-hooks > @vercel/fetch > @vercel/fetch-cached-dns@2.0.1” has unmet peer dependency “node-fetch@*”.
21:01:44 warning “@bigcommerce/storefront-data-hooks > @vercel/fetch > @vercel/fetch-retry@5.0.3” has unmet peer dependency “node-fetch@*”.
21:01:44 warning “next > use-subscription@1.5.0” has incorrect peer dependency “react@^17.0.0”.
21:01:44 warning " > postcss-import@13.0.0" has unmet peer dependency “postcss@^8.0.0”.
21:01:44 warning " > react-ticker@1.2.2" has unmet peer dependency “prop-types@^15.5.4”.
21:01:47 [4/4] Building fresh packages…
21:01:50 Done in 15.22s.
21:01:50 Running “yarn run build”
21:01:50 yarn run v1.22.4
21:01:50 $ next build
21:01:51 warn - You have enabled experimental feature(s).
21:01:51 warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
21:01:51 info - Creating an optimized production build…
21:01:51 Attention: Next.js now collects completely anonymous telemetry regarding usage.
21:01:51 This information is used to shape Next.js’ roadmap and prioritize features.
21:01:51 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:
21:01:51 https://nextjs.org/telemetry
21:02:05 warn - The conservative purge mode will be removed in Tailwind 2.0.
21:02:05 warn - Please switch to the new layers mode instead.
21:02:26 <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (137kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
21:02:26 <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (126kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
21:02:26 <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (186kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
21:02:37 info - Compiled successfully
21:02:37 info - Collecting page data…
21:02:38 info - Generating static pages (0/45)
21:02:38 Unhandled error during request: Error: Page with slug ‘en-US/shipping-returns’ not found
21:02:38 at getStaticProps (/vercel/workpath0/.next/serverless/pages/[…pages].js:6748:11)
21:02:38 at processTicksAndRejections (internal/process/task_queues.js:97:5)
21:02:38 at async renderToHTML (/vercel/workpath0/node_modules/next/dist/next-server/server/render.js:26:109)
21:02:38 at async renderReqToHTML (/vercel/workpath0/.next/serverless/pages/[…pages].js:7385:22)
21:02:38 at async Object.exportPage [as default] (/vercel/workpath0/node_modules/next/dist/export/worker.js:12:92)
21:02:38 Error occurred prerendering page “/en-US/shipping-returns”. Read more: https://err.sh/next.js/prerender-error
21:02:38 Error: Page with slug ‘en-US/shipping-returns’ not found
21:02:38 at getStaticProps (/vercel/workpath0/.next/serverless/pages/[…pages].js:6748:11)
21:02:38 at processTicksAndRejections (internal/process/task_queues.js:97:5)
21:02:38 at async renderToHTML (/vercel/workpath0/node_modules/next/dist/next-server/server/render.js:26:109)
21:02:38 at async renderReqToHTML (/vercel/workpath0/.next/serverless/pages/[…pages].js:7385:22)
21:02:38 at async Object.exportPage [as default] (/vercel/workpath0/node_modules/next/dist/export/worker.js:12:92)
21:02:39 Unhandled error during request: Error: Page with slug ‘en-US/contact-us’ not found
21:02:39 at getStaticProps (/vercel/workpath0/.next/serverless/pages/[…pages].js:6748:11)
21:02:39 at processTicksAndRejections (internal/process/task_queues.js:97:5)
21:02:39 at async renderToHTML (/vercel/workpath0/node_modules/next/dist/next-server/server/render.js:26:109)
21:02:39 at async renderReqToHTML (/vercel/workpath0/.next/serverless/pages/[…pages].js:7385:22)
21:02:39 at async Object.exportPage [as default] (/vercel/workpath0/node_modules/next/dist/export/worker.js:12:92)
21:02:39 Error occurred prerendering page “/en-US/contact-us”. Read more: https://err.sh/next.js/prerender-error
21:02:39 Error: Page with slug ‘en-US/contact-us’ not found
21:02:39 at getStaticProps (/vercel/workpath0/.next/serverless/pages/[…pages].js:6748:11)
21:02:39 at processTicksAndRejections (internal/process/task_queues.js:97:5)
21:02:39 at async renderToHTML (/vercel/workpath0/node_modules/next/dist/next-server/server/render.js:26:109)
21:02:39 at async renderReqToHTML (/vercel/workpath0/.next/serverless/pages/[…pages].js:7385:22)
21:02:39 at async Object.exportPage [as default] (/vercel/workpath0/node_modules/next/dist/export/worker.js:12:92)
21:02:40 info - Generating static pages (11/45)
21:02:42 info - Generating static pages (22/45)
21:02:43 info - Generating static pages (33/45)
21:02:44 info - Generating static pages (45/45)
21:02:44 > Build error occurred
21:02:44 Error: Export encountered errors on following paths:
21:02:44 /en-US/contact-us
21:02:44 /en-US/shipping-returns
21:02:44 at exportApp (/vercel/workpath0/node_modules/next/dist/export/index.js:25:1103)
21:02:44 at runMicrotasks (<anonymous>)
21:02:44 at processTicksAndRejections (internal/process/task_queues.js:97:5)
21:02:44 at async build (/vercel/workpath0/node_modules/next/dist/build/index.js:39:69)
21:02:44 error Command failed with exit code 1.
21:02:44 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
21:02:44 Error: Command “yarn run build” exited with 1
21:02:47 Done with “package.json”

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
FBoslercommented, Apr 16, 2021

@michaelozery removing the engines part in package.json did the trick for me

3reactions
jamesryan-devcommented, Mar 29, 2021
    ~/Documents/Code/commerce-next-js-test  on   master   ✔  base 
╰─ yarn install
yarn install v1.22.10
[1/5] 🔍  Validating package.json...
error nextjs-commerce@1.0.0: The engine "node" is incompatible with this module. Expected version "14.x". Got "15.2.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

╭─    ~/Doc/Code/commerce-next-js-test  on   master       1 ✘  base 
╰─ npm install
npm notice
npm notice New minor version of npm available! 7.0.10 -> 7.7.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.7.5
npm notice Run npm install -g npm@7.7.5 to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: nextjs-commerce@1.0.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from @reach/portal@0.11.2
npm ERR! node_modules/@reach/portal
npm ERR!   @reach/portal@"^0.11.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/james/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/james/.npm/_logs/2021-03-29T19_04_29_192Z-debug.log

Still erroring

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error after cloning Next.js + BigCommerce project and ...
When trying Next.js + BigCommerce live demo starter, Sign up + Sign in + Logout for Customer API is working fine. When cloning...
Read more >
How to Build a Storefront with Next.js and BigCommerce
In this tutorial, you will build a Storefront connecting the Storyblok, BigCommerce and Next.js Commerce systems. Take a look at the end ...
Read more >
Next.js Commerce - Vercel
Next.js Commerce. The all-in-one starter kit for high-performance e-commerce sites. With a few clicks, Next.js developers can clone, deploy and fully ...
Read more >
How to develop on Next.js Commerce: an in-depth guide
It supports a number of major commerce platforms out of the box, including Shopify, BigCommerce, Swell, Saleor, Commerce.js, and more.
Read more >
Next.js Commerce: An overview and tutorial - LogRocket Blog
Next.js Commerce framework empowers developers to build a seamless e-commerce experience with a BigCommerce backend.
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