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

vue-cli template webpack changed dev command, making exposing IP a bit problematic for nanobox one-liner command #3

Open
kairxa opened this issue Dec 15, 2017 · 1 comment

Comments

@kairxa
Copy link

kairxa commented Dec 15, 2017

I am not really familiar with how nanobox passes the flag into npm run dev command, but using nanobox run npm run dev --host 0.0.0.0 in latest vue-cli webpack (>1.2.6) will result in the following error:

> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js "0.0.0.0"

 94% asset optimization

 ERROR  Failed to compile with 1 errors                                                                                                                                                               6:40:47 AM

This dependency was not found:

* 0.0.0.0 in multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server 0.0.0.0

To install it, you can run: npm install --save 0.0.0.0

In addition to error above, webpack-dev-server doesn't allow 0.0.0.0 host, as written here.

My current approach is to manually edit package.json to include --host 0.0.0.0 to the dev command, and to edit build/webpack.dev.conf.js to add disableHostCheck flag.

vue-cli template pwa is currently not facing this bug.

Any solution on how to make nanobox one-liner command for developing vue great again? Thanks.

@karneaud
Copy link

karneaud commented May 4, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants