question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not work with Webpack 2.1.0-beta.23+

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
sapegincommented, Oct 5, 2016

@aaronjensen I’ve added a Roadmap, and 4.0 is very close 😉

1reaction
nktcommented, Sep 22, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found