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

Failed to build nextjs app #30636

Closed
ghost opened this issue Oct 29, 2021 · 3 comments · Fixed by #30790
Closed

Failed to build nextjs app #30636

ghost opened this issue Oct 29, 2021 · 3 comments · Fixed by #30790
Milestone

Comments

@ghost
Copy link

ghost commented Oct 29, 2021

What version of Next.js are you using?

12.0.1

What version of Node.js are you using?

12.22.5

What browser are you using?

Librewolf

What operating system are you using?

Linux

How are you deploying your application?

Vercel

Describe the Bug

So i tried to build my nextjs app. Everything worked when i started a development server but failed when tried to build the app.

Expected Behavior

It should just build a production build

To Reproduce

git clone https://github.com/thatcatdrout/catdrout.to
yarn 
yarn build
@ghost ghost added the bug Issue was opened via the bug report template. label Oct 29, 2021
@levanidev
Copy link

same here, i'm getting

info  - Collecting page data ..New Prisma Client | NODE_ENV: production
info  - Collecting page data ...New Prisma Client | NODE_ENV: production

> Build error occurred
Error: Call retries were exceeded
    at ChildProcessWorker.initialize (...\node_modules\jest-worker\build\workers\ChildProcessWorker.js:193:21)
    at ChildProcessWorker._onExit (...\node_modules\jest-worker\build\workers\ChildProcessWorker.js:275:12)
    at ChildProcess.emit (node:events:365:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
  type: 'WorkerError'
}

it was working fine not too long ago, suddenly this happens

@timneutkens timneutkens added area: SWC Minify and removed bug Issue was opened via the bug report template. labels Oct 30, 2021
@timneutkens
Copy link
Member

Thanks for the report @thatcatdrout, this seems related to swcMinify so in order to unblock yourself you can temporarily disable swcMinify in next.config.js. We'll investigate it further!

@timneutkens timneutkens added this to the 12.0.x milestone Oct 30, 2021
@kdy1 kdy1 mentioned this issue Nov 2, 2021
10 tasks
@kodiakhq kodiakhq bot closed this as completed in #30790 Nov 2, 2021
kodiakhq bot pushed a commit that referenced this issue Nov 2, 2021
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`



This PR applies

 - swc-project/swc#2610

This increases the pass limit (which is required to prevent hanging) from 30 to 100.
Fixes #30636.

 - swc-project/swc#2625

This marks assignment with operators as `usage`+ `assign`. Previously it was only `assisgn`. This is to preserve assignments to variables used like `(a += '').split('.'))`.

Fixes #30414.

---

I expect this to fix some more issues on next.js repository, but I didn't list them because it's not tested.
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
natew pushed a commit to natew/next.js that referenced this issue Feb 16, 2022
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`



This PR applies

 - swc-project/swc#2610

This increases the pass limit (which is required to prevent hanging) from 30 to 100.
Fixes vercel#30636.

 - swc-project/swc#2625

This marks assignment with operators as `usage`+ `assign`. Previously it was only `assisgn`. This is to preserve assignments to variables used like `(a += '').split('.'))`.

Fixes vercel#30414.

---

I expect this to fix some more issues on next.js repository, but I didn't list them because it's not tested.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants