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
Milestone

Comments

@victorgarciaesgi
Copy link

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

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

@pk-pranshu
Copy link

pk-pranshu 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

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 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

Closing in lieu of #223

@junjettrasmonte
Copy link

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
Projects
None yet
Development

No branches or pull requests

6 participants