Do not work with Webpack 2.1.0-beta.23+
See original GitHub issueWebpack 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
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (21 by maintainers)
Top Results From Across the Web
webpack 2.1.0-beta.23 vulnerabilities | Snyk
Does your project rely on vulnerable package dependencies? Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities ( ...
Read more >How to configure pre loader in Webpack 2.1.0 beta 23 - Stack Overflow
Having just upgraded Webpack to 2.1.0 beta 25 I have been unable to find any guidance on how to configure pre loaders. The...
Read more >webpack @ 2.1.0-beta.22 .. 2.1.0-beta.23 - Package Diff
2.1.0-beta.23 ... describe: "Enviroment passed to the config, when it is a function",. group: CONFIG_GROUP ... expr + " is not supported by...
Read more >invalid configuration object. webpack has been - You.com
Yesterday, webpack released 2.1.0-beta.23 which is not compatible with angular-cli 1.0.0-beta.14 so, due to the caret ( ^ ), deployed versions of ...
Read more >npm ERR! notarget No compatible version found - Laracasts
npm ERR! notarget No compatible version found: webpack@'>=2.1.0-beta.15 ... npm ERR! notarget This is most likely not a problem with npm itself. npm...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.