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

vue-cli-service build hangs indefinitely #5898

Open
UglyHobbitFeet opened this issue Sep 23, 2020 · 20 comments
Open

vue-cli-service build hangs indefinitely #5898

UglyHobbitFeet opened this issue Sep 23, 2020 · 20 comments

Comments

@UglyHobbitFeet
Copy link

Version

4.5.6

Environment info

  System:
    OS: Linux 3.10 CentOS Linux 7 (Core)
    CPU: (2) x64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
  Binaries:
    Node: 12.18.4 - /bin/node
    Yarn: Not Found
    npm: 6.14.8 - /bin/npm
  Browsers:
    Chrome: 85.0.4183.102
    Firefox: 68.12.0esr
  npmGlobalPackages:
    @vue/cli: 4.5.6

Steps to reproduce

I have a Vue project in Node that I am trying to build via 'npm run build'. This works fine using the latest NPM (v6.14.8). Using the npm (v6.14.4) shipped with GraalVM causes it to hang indefinitely. FWIW my Vue project is built in Node and compiled using ES4x for Vert.x.
I have tried the same with a prior GraalVM build (19.2.1) and get the same error. I am using v4.5.6 of the vue-cli-service package.

package.json snippet:

"scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "postinstall": "es4x install",
    "start": "es4x",
  },

Ex:

> which npm
/bin/npm
> npm -v
6.14.8
> npm run build
> vue-cli-service build
⠴  Building for production...
...Lots of output followed by...
 DONE  Build complete. The dist directory is ready to be deployed.
> /path/to/graalvm-ce-java8-20.2.0/bin/npm run build
> vue-cli-service build
⠴  Building for production...
<I never get any further output from this. It hangs on the last line shown above>

What is expected?

For the call to complete

What is actually happening?

The call does not complete

@Epic-Pony
Copy link

hi,I have same problem ,did you solve the problem

@haoqunjiang
Copy link
Member

I'm sorry but I have zero experience with the GraalVM setup. Could you provide a docker image or something similar so that I can debug this issue?

@UglyHobbitFeet
Copy link
Author

UglyHobbitFeet commented Sep 24, 2020 via email

@UglyHobbitFeet
Copy link
Author

UglyHobbitFeet commented Sep 24, 2020 via email

@UglyHobbitFeet
Copy link
Author

UglyHobbitFeet commented Sep 29, 2020 via email

@haoqunjiang
Copy link
Member

But fibers is a dev dependency that won't go into the user's project until they explicitly install it themselves.

@UglyHobbitFeet
Copy link
Author

UglyHobbitFeet commented Sep 30, 2020 via email

@haoqunjiang
Copy link
Member

According to the code, only two things happen after that line of output: resolving the webpack configuration and invoking webpack https://github.com/vuejs/vue-cli/blob/next/packages/@vue/cli-service/lib/commands/build/index.js#L118

So we need to find a way to debug webpack & the underlying loaders.

@UglyHobbitFeet
Copy link
Author

UglyHobbitFeet commented Sep 30, 2020 via email

@rajinderAdvarra
Copy link

@UglyHobbitFeet
I am facing the same problem. I have two projects and for one it exists with success and for the other, it is waiting indefinitely. Do you find any solution for it?

@UglyHobbitFeet
Copy link
Author

UglyHobbitFeet commented Nov 8, 2021 via email

@rajinderAdvarra
Copy link

Okay thanks. But unfortunately I am not using GRAALVM but still getting the error. I will dig deeper than.

@alecvn
Copy link

alecvn commented Feb 22, 2022

Running the build command on docker makes the process hang for me too and I'm not using GRAALVM.

@omcpheelyGEL
Copy link

I too am experiencing this same issue - also not using GRAALVM.

Any advice is appreciated.

@berzi
Copy link

berzi commented Jan 8, 2023

Same issue here too, not using GRAALVM. Just a Vue project with Typescript in a Docker container.

@xs9627
Copy link

xs9627 commented Jan 17, 2023

For my case, build process ended with node v14 but non-stop with node v16 & v18.

@taxilian
Copy link

I'm suddenly seeing this as well, using node v18 and the latest vue-cli-server 4.x / vue 2.7

I can try building using node 14, I suppose, see if that helps....

If anyone finds a way to get useful debug info out of the process please share! setting env var "NODE=*" gets a lot of extra debug stuff printed, but it still hits a point where it just stalls indefinitely with no explanation

@taxilian
Copy link

I upgraded to node 20 for that part of my build and it's working; there is something about node 18 which is causing the issue in my case

m4heshd added a commit to m4heshd/ufc-ripper that referenced this issue Oct 3, 2023
This seems to happen when using Node v18 as mentioned in vuejs/vue-cli#5898.
@njzjz
Copy link

njzjz commented Oct 6, 2023

I'm suddenly seeing this as well, using node v18 and the latest vue-cli-server 4.x / vue 2.7

Only 18.18.0 has this problem. When I tried 16, 20, or 18.17.1, all of them were ok.

@njzjz
Copy link

njzjz commented Oct 6, 2023

It should be due to this issue: nodejs/node#49911

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

9 participants