-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Comments
hi,I have same problem ,did you solve the problem |
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? |
Unfortunately I don't have a docker image, and I am unable to send my
specific project. Is there a way to debug during the vue-cli-build stage
instead of only seeing the words 'Building for production...'?
As a side note, the easiest way to set up a vue project with graal would be:
1. Download GraalVM-CE-Java 8 (20.2.0) from here (
https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-20.2.0) and
extract it to a folder on your computer.
2. Create a hello world project in Vue. In a command line type (vue create
hello-world). I'm using vue-cli v4.5.6 and choosing Vue2 as the default
option.
3. Try to install/build it. cd hello-world; npm install;
/path/to/graalvm-ce-java8-20.2.0/bin/npm run build;
I tried to create an example for you using the steps mentioned above
(additionally modifying the package.json file to mirror the package.json
file in my project) but there were no errors. So it's likely either
something in my actual code or the size of the code (maybe causing
vue-cli-build to time out?). That's where the debug statements would be
super helpful.
…On Thu, Sep 24, 2020 at 4:05 AM Haoqun Jiang ***@***.***> wrote:
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?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5898 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBDS7WPIYW2HEZFCLXVK6DSHL4UPANCNFSM4RXLNZNQ>
.
|
Also FWIW the (graal npm / vue-cli-build command) seems to pretty much pin
my CPU at 100% and consume between 1-2GB of memory. Looking at the process
shows 'Process status - sleeping. Process is waiting for something to
happen'. It's been running for 30 minutes now. Using the non-graal npm
usually has it complete in 30 seconds.
On Thu, Sep 24, 2020 at 11:57 AM Jeremy D <[email protected]>
wrote:
… Unfortunately I don't have a docker image, and I am unable to send my
specific project. Is there a way to debug during the vue-cli-build stage
instead of only seeing the words 'Building for production...'?
As a side note, the easiest way to set up a vue project with graal would
be:
1. Download GraalVM-CE-Java 8 (20.2.0) from here (
https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-20.2.0) and
extract it to a folder on your computer.
2. Create a hello world project in Vue. In a command line type (vue create
hello-world). I'm using vue-cli v4.5.6 and choosing Vue2 as the default
option.
3. Try to install/build it. cd hello-world; npm install;
/path/to/graalvm-ce-java8-20.2.0/bin/npm run build;
I tried to create an example for you using the steps mentioned above
(additionally modifying the package.json file to mirror the package.json
file in my project) but there were no errors. So it's likely either
something in my actual code or the size of the code (maybe causing
vue-cli-build to time out?). That's where the debug statements would be
super helpful.
On Thu, Sep 24, 2020 at 4:05 AM Haoqun Jiang ***@***.***>
wrote:
> 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?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#5898 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALBDS7WPIYW2HEZFCLXVK6DSHL4UPANCNFSM4RXLNZNQ>
> .
>
|
It's hard to tell without vue-cli having debugging, but the GraalVM folks
pointed at the vue-cli-service dependency of fibers as a possible cause and
that that they do not support.
oracle/graal#2866 (comment)
On Thu, Sep 24, 2020 at 12:08 PM Jeremy D <[email protected]>
wrote:
… Also FWIW the (graal npm / vue-cli-build command) seems to pretty much pin
my CPU at 100% and consume between 1-2GB of memory. Looking at the process
shows 'Process status - sleeping. Process is waiting for something to
happen'. It's been running for 30 minutes now. Using the non-graal npm
usually has it complete in 30 seconds.
On Thu, Sep 24, 2020 at 11:57 AM Jeremy D ***@***.***>
wrote:
> Unfortunately I don't have a docker image, and I am unable to send my
> specific project. Is there a way to debug during the vue-cli-build stage
> instead of only seeing the words 'Building for production...'?
>
> As a side note, the easiest way to set up a vue project with graal would
> be:
> 1. Download GraalVM-CE-Java 8 (20.2.0) from here (
> https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-20.2.0) and
> extract it to a folder on your computer.
> 2. Create a hello world project in Vue. In a command line type (vue
> create hello-world). I'm using vue-cli v4.5.6 and choosing Vue2 as the
> default option.
> 3. Try to install/build it. cd hello-world; npm install;
> /path/to/graalvm-ce-java8-20.2.0/bin/npm run build;
>
> I tried to create an example for you using the steps mentioned above
> (additionally modifying the package.json file to mirror the package.json
> file in my project) but there were no errors. So it's likely either
> something in my actual code or the size of the code (maybe causing
> vue-cli-build to time out?). That's where the debug statements would be
> super helpful.
>
>
> On Thu, Sep 24, 2020 at 4:05 AM Haoqun Jiang ***@***.***>
> wrote:
>
>> 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?
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#5898 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ALBDS7WPIYW2HEZFCLXVK6DSHL4UPANCNFSM4RXLNZNQ>
>> .
>>
>
|
But |
Unfortunately we kinda have to guess in the dark. Is there any way
debugging can be added/output when vue-cli-service is running?
…On Tue, Sep 29, 2020, 9:16 PM Haoqun Jiang ***@***.***> wrote:
But fibers is a dev dependency that won't go into the user's project
until they explicitly install it themselves.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5898 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBDS7WULNACCBCJLATN2RDSIKBHFANCNFSM4RXLNZNQ>
.
|
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. |
Are you able to use these when calling and would they be helpful for this
particular situation?
https://webpack.js.org/contribute/debugging/
https://webpack.js.org/api/stats/
…On Wed, Sep 30, 2020 at 2:03 AM Haoqun Jiang ***@***.***> wrote:
According to the code, only two things happen after that line of output:
resolving the webpack configuration and invoking webpack
***@***.***/cli-service/lib/commands/build/index.js#L118
So we need to find a way to debug webpack & the underlying loaders.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5898 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBDS7SBYDILWL54AOB4J6LSILC2NANCNFSM4RXLNZNQ>
.
|
@UglyHobbitFeet |
Hi,
I abandoned the use of Graal and it worked for me.
…On Mon, Nov 8, 2021 at 10:01 AM Rajinder Singh ***@***.***> wrote:
@UglyHobbitFeet <https://github.com/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?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5898 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBDS7WG63V65F3OGS5NCULUK7Q6NANCNFSM4RXLNZNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Okay thanks. But unfortunately I am not using GRAALVM but still getting the error. I will dig deeper than. |
Running the build command on docker makes the process hang for me too and I'm not using GRAALVM. |
I too am experiencing this same issue - also not using GRAALVM. Any advice is appreciated. |
Same issue here too, not using GRAALVM. Just a Vue project with Typescript in a Docker container. |
For my case, build process ended with node v14 but non-stop with node v16 & v18. |
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 |
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 |
This seems to happen when using Node v18 as mentioned in vuejs/vue-cli#5898.
Only 18.18.0 has this problem. When I tried 16, 20, or 18.17.1, all of them were ok. |
It should be due to this issue: nodejs/node#49911 |
Version
4.5.6
Environment info
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:
Ex:
What is expected?
For the call to complete
What is actually happening?
The call does not complete
The text was updated successfully, but these errors were encountered: