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

Cannot build vue app for production -- webpack gets into endless loop #3360

Closed
qodfathr opened this issue Jul 6, 2018 · 5 comments
Closed

Comments

@qodfathr
Copy link

qodfathr commented Jul 6, 2018

  • Your Windows build number: 10.0.17692.1004

  • What you're doing and what's happening: Trying to build a node Vue app for production.

  • What's wrong / what should be happening instead: It should build the app. Instead, build runs forever.

From a clean install of Ubuntu/WSL,

Install nvm, node v8, and @vue/cli

node -v : 8.11.3 (problem also happens with v9 and v10, btw)
npm -v: 5.6.0
vue -V : 3.0.0-rc.3

use vue create to create a sample app with defaults.

npm run build to build the project for production

Observe that the build never finished, and a node process is consuming 100% of a core.

What appears to be happening is, within the running of webpack as part of the compile, a call from native back to node for managing async callbacks/promises isn't doing anything. In particular, in async_hooks.js, the function emitHookFactory will be called over and over again with the same asyncId, but for that particular asyncId it does not do anything -- seemingly leaving it on the list of callbacks yet to be resolved. Rinse and repeat.

This behavior is not observed on CentOS (in a Hyper-V VM) with the exact same project and same versions of node/npm/vue.

@ghost
Copy link

ghost commented Jul 6, 2018

Where do you installed node from ? apt sources ubuntu or apt from sources node packages

@qodfathr
Copy link
Author

qodfathr commented Jul 6, 2018

I installed nvm via

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

and then node via nvm with

nvm install node v8

I'm not sure where nvm gets node from, though.

@therealkenc
Copy link
Collaborator

Your Windows build number: 10.0.17692.1004

#3191. Try 17677

@ghost
Copy link

ghost commented Jul 6, 2018

Try installed node from here, then reinstall vue https://nodejs.org/en/download/package-manager/

@qodfathr
Copy link
Author

qodfathr commented Jul 8, 2018

I agree this was likely just a dupe of #3191. I upgraded to 10.0.17711.1000 and the problem immediately went away without any additional remediation.

Closing as dupe.

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

No branches or pull requests

2 participants