Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible breaking changes introduced in Webpack 2.1.0-beta23 #17

Closed
AndrewFeeney opened this issue Sep 20, 2016 · 11 comments
Closed

Possible breaking changes introduced in Webpack 2.1.0-beta23 #17

AndrewFeeney opened this issue Sep 20, 2016 · 11 comments

Comments

@AndrewFeeney
Copy link
Contributor

I can't get my gulp build to run. The error states:

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'babel'. 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? }

Some googling indicates that this might be related to breaking changes in Webpack 2.1.0-beta23, but I don't really know.

Related github issues:

webpack/webpack#3018
angular/angular-cli#2234

@joseconsador
Copy link

Having the same issue.

@jenky
Copy link

jenky commented Sep 20, 2016

My workaround is installed beta22 version

npm i webpack@2.1.0-beta.22

@developerdino
Copy link

I'm having the same issue. Thanks @jenky for the workaround.

@TheLarkInn
Copy link

@usulix
Copy link

usulix commented Sep 20, 2016

My workaround is installed beta22 version

npm i webpack@2.1.0-beta.22

This does not fix the issue for elixir's laravel-elixir-webpack-official does it?
Am I missing something or are you manually running webpack in your gulpfile.js?

@AndrewFeeney
Copy link
Contributor Author

I've submitted a PR for a patch to lock down the dependency to a max of webpack@2.1.0-beta.22 until the actual issue with the breaking changes is fixed. Hopefully someone more familiar with node than I can look into the changes required to make the package compatible with beta23.

@rsm23
Copy link

rsm23 commented Sep 21, 2016

same issue here

/node_modules/webpack/lib/webpack.js:16
throw new WebpackOptionsValidationError(webpackOptionsValidationErrors);
^
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration has an unknown property 'babel'. 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? }
    at webpack (/Users/pc/projects/dmca/node_modules/webpack/lib/webpack.js:16:9)
    at Stream. (/Users/pc/projects/dmca/node_modules/webpack-stream/index.js:131:20)
    at _end (/Users/pc/projects/dmca/node_modules/through/index.js:65:9)
    at Stream.stream.end (/Users/pc/projects/dmca/node_modules/through/index.js:74:5)
    at DestroyableTransform.onend (/Users/pc/projects/dmca/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:523:10)
    at DestroyableTransform.g (events.js:286:16)
    at emitNone (events.js:91:20)
    at DestroyableTransform.emit (events.js:185:7)
    at /Users/pc/projects/dmca/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:965:16
    at _combinedTickCallback (internal/process/next_tick.js:67:7)

@AndrewFeeney
Copy link
Contributor Author

@rsm23 Can you run 'npm update' and try again? A patch was merged a few hours ago.

@rsm23
Copy link

rsm23 commented Sep 21, 2016

@WebSpanner actually it has been fixed, thank you so much

zbicin added a commit to zbicin/angular2-aot-demo that referenced this issue Sep 23, 2016
As for now, `npm install` installs `beta.25` version which fails claiming that the webpack config file is invalid. It seems that the webpack team introduced some changes in `beta.23` which break on some configs: JeffreyWay/laravel-elixir-webpack-official#17 .
manekinekko pushed a commit to manekinekko/angular-aot-demo that referenced this issue Sep 23, 2016
As for now, `npm install` installs `beta.25` version which fails claiming that the webpack config file is invalid. It seems that the webpack team introduced some changes in `beta.23` which break on some configs: JeffreyWay/laravel-elixir-webpack-official#17 .
@aeron11
Copy link

aeron11 commented Mar 24, 2017

I tried these steps and finally it works:

npm uninstall webpack --save-dev

then

npm install webpack@2.1.0-beta.22 --save-dev

@jbuican14
Copy link

I ran into this issue today :

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.output.path: The provided value "build" is not an absolute path!

Then I tried the above solution : npm install webpack@2.1.0-beta.22 --save-dev and it works! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants