Skip to content
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

yarn build hangs on "Creating an optimized production build" on centos7 #35130

Closed
1 task done
Fity opened this issue Mar 8, 2022 · 2 comments
Closed
1 task done

yarn build hangs on "Creating an optimized production build" on centos7 #35130

Fity opened this issue Mar 8, 2022 · 2 comments
Labels
bug Issue was opened via the bug report template.

Comments

@Fity
Copy link

Fity commented Mar 8, 2022

Verify canary release

  • I verified that the issue exists in Next.js canary release

Provide environment information

same as #9410
My Environment:

  • node v16.14.0, installed via yum
  • npx 6.13.4
  • glibc: ldd (GNU libc) 2.18, build from source
  • yarn 1.22.15
  • create-next-app@12.1.0
  • Next.js
  • os release
$ cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

What browser are you using? (if relevant)

not related

How are you deploying your application? (if relevant)

not related

Describe the Bug

when running yarn build, it hangs on "Creating an optimized production build"

Expected Behavior

finishing the building process and get the .next output

To Reproduce

  1. create a sample project via yarn create next-app with default settings(my-app as the project name)
  2. cd my-app && yarn build
  3. it hangs
    image

the package.json content

{
  "name": "my-app",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "next": "12.1.0",
    "react": "17.0.2",
    "react-dom": "17.0.2"
  },
  "devDependencies": {
    "eslint": "8.10.0",
    "eslint-config-next": "12.1.0"
  }
}
@Fity Fity added the bug Issue was opened via the bug report template. label Mar 8, 2022
@balazsorban44
Copy link
Member

Seems like a duplicate of #33854. This should be fixed on canary already, please try it out.

You checked:

I verified that the issue exists in Next.js canary release

but your reproduction suggested otherwise. Please make sure you only check it if you have verified with canary, thanks! 🙏

Note, you shouldn't need to build glibc 2.18 from the source either. 👍

@github-actions
Copy link
Contributor

github-actions bot commented Apr 8, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants