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

[Feature request] Show build output/progress #4016

Closed
1 task done
Pixelatex opened this issue Mar 15, 2018 · 16 comments
Closed
1 task done

[Feature request] Show build output/progress #4016

Pixelatex opened this issue Mar 15, 2018 · 16 comments

Comments

@Pixelatex
Copy link

Pixelatex commented Mar 15, 2018

When starting the next build, nothing is shown for a good amount of time. This has caused several misunderstandings with newer developers and is fairly annoying to have no idea how much longer your build will take.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I would expect something in the next.config like showBuildOutput: true that will show some indication of how far along the build is in the terminal or even a progress bar.

Current Behavior

Currently, you're staring at a nonchanging terminal window for a few minutes if the build takes a while.

Context

This could be considered a quality of life improvement but is something that I personally would expect to be a fundemental feature of any build.

@Stefavag88
Copy link

How long is the build supposed to take ?
When i run "npm run build" it gets stuck on:

Using external babel configuration
Location: "C:\Users[My User]\Desktop\WorkSpace[ProjectDirectory].babelrc"

I have not waited for more than 15 minutes, but it seems that something is wrong. Should i just wait more or is there a problem with my config?

@Pixelatex
Copy link
Author

I'd wager something is wrong with your babel config. Have you tried running it without the external config?

@bensalilijames
Copy link
Contributor

I had a similar problem where sometimes next build would carry on forever as described above, and sometimes it would build all fine (notably using the exact same code).

After increasing the RAM on the (Heroku) server it builds on, it hasn't failed again.

I spent a long time looking for anything that might help debug this issue, but ultimately gave up as I couldn't reproduce it locally and there weren't any tools I could find that report progress on a webpack build. Having some sort of progress would be super useful! 🙂

@lucleray
Copy link
Member

lucleray commented Apr 27, 2018

You can use webpackbar in the webpack config to show a progress bar.

I made a tiny plugin to do that : https://github.com/lucleray/next-progressbar

Demo

@ManotLuijiu
Copy link

How to use next-progressbar together with next-sass

@timneutkens
Copy link
Member

How to use next-progressbar together with next-sass

webpackbar is included in Next.js since v7.

With relation to build output, this is landing in stable soon: #5664

@james-wallis
Copy link

@timneutkens I don't have any build output showing when I run next build.
All I have is

[13:18:54] Compiling client
[13:18:54] Compiling server

until the build either passes or fails which is causing my Travis build to fail as it doesn't see any output.
Running Next.js version 7.0.2 with the only plugin being next-optimized-imagse.
Do I have to enable some additional parameter to see the progress bar on build or is something broken?

@tnunes
Copy link

tnunes commented Feb 12, 2019

Same here, was doing some bundle optimisation and looking for a feature like this. Any config option we need to use or was this disabled in the meantime?

@vernak2539
Copy link

I've been trying to upgrade to next v8 and the progress bars don't seem to be included. Are there plans for this?

@MicroBenz
Copy link

@vernak2539 I have the same issue as yours. I've updated next to v8 at first the progress bar shown as normal and then it just disappears. And now it's completely nothing in the terminal.

@Timer
Copy link
Member

Timer commented Mar 12, 2019

The progress bar caused significant build performance degradation, so we decided to remove it.

You're free to inject this plugin back if you'd like!

@Nelrohd
Copy link

Nelrohd commented Apr 18, 2019

A bit linked with this ticket and not sure if it's normal before creating an issue but I'm using express server + nextjs v8 (basic setup) and I get this:

[ event ] build page: /
[ wait ]  compiling ...
[ event ] build page: /signup
[ wait ]  compiling ...
[ event ] build page: /login
[ wait ]  compiling ...

It seems weird that it's always compiling and not showing done. Is this a bug or a feature?

@novellito
Copy link

@Nelrohd Did you end up finding an answer to the compiling issue? My app works fine but the fact that it doesn't "finish" is driving me crazy!

@landsman
Copy link
Contributor

Is there some verbose argument?

@abhishekasana
Copy link

abhishekasana commented Oct 9, 2019

@james-wallis
You can try using webpackbar,
add the following config in next config,

//next.config.js
module.exports = ({
  webpack: (config) => {
    config.plugins.push(new WebpackBar({
      fancy: true,
      profile: true,
      basic: false,
    }));

    return config;
  }
})

@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 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests