The Wayback Machine - https://web.archive.org/web/20200611065451/https://github.com/FormidableLabs/webpack-dashboard/issues/218
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

Don't work with concurrently and nodemon #218

Closed
victorgarciaesgi opened this issue Oct 30, 2017 · 6 comments
Closed

Don't work with concurrently and nodemon #218

victorgarciaesgi opened this issue Oct 30, 2017 · 6 comments
Labels
Milestone

Comments

@victorgarciaesgi
Copy link

@victorgarciaesgi victorgarciaesgi commented Oct 30, 2017

I can't make it work with webpack --watch and concurrently

"scripts": {
    "dev": "concurrently --kill-others \"npm run clean && npm run server\" \"npm run dev-server\"",
    "server": "webpack-dashboard -- nodemon Server.js",
    "server-prod": "cross-env NODE_ENV=production nodemon Server.js",
    "dev-server": "webpack --watch --hot",
    "prod": "cross-env NODE_ENV=production npm run clean && npm run build-prod && npm run server-prod",
    "clean": "rimraf dist",
    "build-prod": "webpack --config config/webpack.config.prod.js --progress"
  },
@ryan-roemer
Copy link
Member

@ryan-roemer ryan-roemer commented Oct 30, 2017

Can you please create a minimal repository with code + install + steps to reproduce the error so that we can see it too? Thanks!

@pranshu1992
Copy link

@pranshu1992 pranshu1992 commented Nov 7, 2017

I think there is an issue with concurrently. Works fine with nodemon for me when I run the first script. In the second script dashboard never shows up.

"scripts": {
    "start": "webpack-dashboard -- nodemon server.js",
    "start-test-env": "concurrently \"gulp minify-css-dev\" \"webpack --config webpack_test.config.js\" \"export NODE_ENV=test && webpack-dashboard -- nodemon server.js\" 
}
@ryan-roemer
Copy link
Member

@ryan-roemer ryan-roemer commented Nov 7, 2017

As already discovered in #214 (shelljs) and #217 (nodemon), some libraries are incompatible with blessed, the terminal magic library webpack-dashboard we use.

Can you apply a change like I've done in #217 (comment) to remove webpack-dashboard completely and just run the simplest blessed sample to see if the issue is still there?

It would likely be something like:

    "server": "nodemon node_modules/blessed/example/simple-form.js",
    "server-prod": "cross-env NODE_ENV=production nodemon node_modules/blessed/example/simple-form.js",
@nurishi
Copy link

@nurishi nurishi commented Apr 29, 2018

I ran into the same issue with concurrently, however, adding --raw param to concurrently did a trick for me.

  "scripts": {
    "start": "concurrently --raw --kill-others \"nw public\" \"npm run dev\"",
    "dev": "webpack-dashboard -- webpack-dev-server --mode development",
@ryan-roemer
Copy link
Member

@ryan-roemer ryan-roemer commented May 24, 2018

Closing in lieu of #223

@junjettrasmonte
Copy link

@junjettrasmonte junjettrasmonte commented May 16, 2020

added -- --watch instead of just --watch fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants
You can’t perform that action at this time.