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

Webpack crash on nodejs@12 #9070

Closed
joshuan opened this issue Apr 27, 2019 · 9 comments
Closed

Webpack crash on nodejs@12 #9070

joshuan opened this issue Apr 27, 2019 · 9 comments

Comments

@joshuan
Copy link

joshuan commented Apr 27, 2019

Bug report

What is the current behavior?

If use nodejs@12, webpack crash with error:

MacBook:~/www/$ webpack


#
# Fatal error in , line 0
# Check failed: U_SUCCESS(status).
#
#
#
#FailureMessage Object: 0x7ffeefbf4fc0Illegal instruction: 4
MacBook:~/www/

If the current behavior is a bug, please provide the steps to reproduce.

  • nvm use 12
  • npm i webpack webpack-cli
  • ./node_modules/.bin/webpack

What is the expected behavior?

Any, at least run

Other relevant information:
webpack version: 4.X.X and 5.X.X-alpha.X
Node.js version: 12.0.0
Operating System: Mac OS X
Additional tools: nvm

@montogeek
Copy link
Member

Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem.

@Zazck
Copy link

Zazck commented Apr 27, 2019

--- detail no need anymore because joshuan found the easiest way to reproduce the issue ---

@montogeek
Copy link
Member

Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem.

@joshuan
Copy link
Author

joshuan commented Apr 27, 2019

@montogeek for reproduce issue you not need project. Just go this code:
cd /tmp && npm i webpack webpack-cli && ./node_modules/.bin/webpack
it is only important - node.js version: 12.0.0

@junjie-lean
Copy link

我也发现了这个问题,webpack-dev-server在nodev12的环境下不能要运行。而vue-cli和Create-react-app都是用到了这个包。目前我的解决办法是把node环境降级到v11.5

@alexander-akait
Copy link
Member

I think problem in webpack-dev-server, please create minimum reproducible test repo

@alexhochreiter
Copy link

alexhochreiter commented Apr 29, 2019

I am getting the same result, taking the reproducing steps that OP provided. Any create-react-app that is based on webpack is now broken with node 12.0.0.
Edit: This appears to have been fixed with node 12.1.0

@hiroppy
Copy link
Member

hiroppy commented Apr 29, 2019

Currently, this problem does not occur in Node12.1.0 so I'll close.

cd /tmp && npm i webpack webpack-cli && ./node_modules/.bin/webpack

@hiroppy hiroppy closed this as completed Apr 29, 2019
@AlexTeixeira
Copy link

I confirm, updating to node 12.1.0 fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants