Next.js: Don't clear terminal history when running `next`

Created on 10 Feb 2017  路  8Comments  路  Source: vercel/next.js

The user should still see the history after using ctrl + c to stop the app.

cc @rauchg

bug p1

Most helpful comment

It should be done like this (imo). But then we need to think about the output that gets generated afterwards...

screen shot 2017-02-10 at 17 01 21

All 8 comments

I can do this. So I just remove all the code that clear the terminal right? Really frustrating because of this "feature"

It should be done like this (imo). But then we need to think about the output that gets generated afterwards...

screen shot 2017-02-10 at 17 01 21

Yeah, basically we need to change the ANSI escapes friendly webpack plugin uses

Fixed it locally, works really well, only caveat is that it's dependent on https://github.com/bubkoo/get-cursor-position which has a native module bind. It does have windows support though and is super fast.

Also, has to be patched on friendly errors webpack plugin like you said @rauchg. So I'll create an issue there.

@timneutkens clearConsole: false is not enough ?

@nkzawa that will stack the compile messages which turns into quite a mess when you do a lot of changes. Though clearConsole is another solution to this issue (tried that one first).

Fixed in #1169

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swrdfish picture swrdfish  路  3Comments

flybayer picture flybayer  路  3Comments

olifante picture olifante  路  3Comments

rauchg picture rauchg  路  3Comments

havefive picture havefive  路  3Comments