Webpacker: run bin/webpack-dev-server and nothing happens

Created on 9 Jan 2018  Â·  3Comments  Â·  Source: rails/webpacker

$ rails -v
Rails 5.2.0.beta2
$ rails new r1 --webpack  --skip-git  --skip-sprockets --skip-coffee --skip-javascript --skip-turbolinks --skip-test --skip-system-test
$ cd r1
$ bin/webpack-dev-server
webpack-dev-server 2.10.0
webpack 3.10.0
Usage: https://webpack.js.org/configuration/dev-server/

Config options:
  --config       Path to the config file
                          [字符串] [默认值: webpack.config.js or webpackfile.js]
  --config-name  Name of the config to use                              [字符串]
  --env          Environment passed to the config, when it is a function

Most helpful comment

It looks like the latest version of [email protected] introduced a bug (see https://github.com/webpack/webpack-dev-server/issues/1259), for a quick fix try installing [email protected], eg (if you use yarn).

yarn add -D [email protected]

All 3 comments

It looks like the latest version of [email protected] introduced a bug (see https://github.com/webpack/webpack-dev-server/issues/1259), for a quick fix try installing [email protected], eg (if you use yarn).

yarn add -D [email protected]

@sjchmiela exactly

It seems [email protected] solves this bug! Not sure. But it works for me.

Was this page helpful?
0 / 5 - 0 ratings