Closed outsideris closed 7 years ago
In my pull request, the same error is occurred. If you confirmed, I could fix it.
If you're using Webpack 2, then please uninstall webpack-validator
and close this issue. See the note in the README about webpack 2 not being supported (it has its own validation built-in :tada:)
As said above OccurenceOrderPlugin is renamed to OccurrenceOrderPlugin (spelling mistake)
However it was not mentioned that it is now enabled by default - so you can just remove the line
new webpack.optimize.OccurenceOrderPlugin(),
@simeyla It does not work. Then output:
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
When I run
npm test
, I encountered following error.As I dig the reason, I guess it caused because
OccurenceOrderPlugin
has been renamed toOccurrenceOrderPlugin
. See https://github.com/webpack/webpack/issues/1964 . All tests are passed when I changeOccurenceOrderPlugin
toOccurrenceOrderPlugin
in the test.However, I'm not sure it is a common problem or just for me.