react-styleguidist: Do not work with Webpack 2.1.0-beta.23+
Webpack has introduced a config validation in beta23 which breaks our build:
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property 'debug'. These properties are valid:
object { amd?, bail?, cache?, context?, devServer?, devtool?, entry, externals?, loader?, module?, name?, dependencies?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
- configuration.module.noParse should be one of these:
[RegExp] | RegExp
Don't parse files matching. It's matched against the full resolved request.
- configuration.resolve has an unknown property 'moduleDirectories'. These properties are valid:
object { modules?, descriptionFiles?, plugins?, mainFields?, aliasFields?, mainFiles?, extensions?, enforceExtension?, moduleExtensions?, enforceModuleExtension?, alias?, symlinks?, unsafeCache?, cachePredicate?, fileSystem?, resolver? }
- configuration.resolve.extensions[0] should not be empty.
- configuration.resolveLoader has an unknown property 'modulesDirectories'. These properties are valid:
object { modules?, descriptionFiles?, plugins?, mainFields?, aliasFields?, mainFiles?, extensions?, enforceExtension?, moduleExtensions?, enforceModuleExtension?, alias?, symlinks?, unsafeCache?, cachePredicate?, fileSystem?, resolver? }
Not sure how we can make a config that works in Webpack 1 and 2.
https://github.com/webpack/webpack/releases/tag/v2.1.0-beta.23
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (21 by maintainers)
Commits related to this issue
- Partially fix Webpack 2.1.0-beta.23 compatibility (#184). webpack.LoaderOptionsPlugin doesn’t work for some reason. — committed to styleguidist/react-styleguidist by sapegin 8 years ago
- Fix Webpack 1 compatibility (#184). — committed to styleguidist/react-styleguidist by sapegin 8 years ago
- Working webpack.LoaderOptionsPlugin for Webpack 2 :anguished: (#184) — committed to styleguidist/react-styleguidist by sapegin 8 years ago
@aaronjensen I’ve added a Roadmap, and 4.0 is very close 😉
I suggest drop webpack2 support for a while. Now latest styleguidist breaks my builds. Or you can add webpack as peer dependency, so users could make choice.