You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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: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 thedev
command, and to editbuild/webpack.dev.conf.js
to adddisableHostCheck
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.
The text was updated successfully, but these errors were encountered: