-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Issue with webpack configuration #1036
Comments
Might be your webpack node_modules updated to latest version , so please refer the new webpack conffig methods |
#1018 should fix this temporary |
Uninstall the latest webpack version and install "webpack": "2.1.0-beta.21" to solve the issue. |
similar issue here,
node v6.6.0 |
@lili21 could i see your pakage.json file?? |
just clone the project, run |
@lili21 plesase run this commands npm uninstall webpack --save-dev |
@lili21 "webpack": "^2.1.0-beta.21", remove the ^ from all webpack dependencies , then it works cool , coz your webpack is updated to latest beta version , they changed a lot in configuring that |
@mshahin364 thanks, It works. |
Hi, I had the same issue yesterday. I solved it by installing webpack@2.1.0-beta.22 |
@mshahin364 It works, thanks. |
I also had same issue, but is it right to downgrade to beta version ? |
The best practice is to use only stable packages, not beta, so we could use |
We get some similar errors related to Webpack on Linux Ubuntu 14.04 upon executing npm start.
Update:
|
I have Executed below Commands . npm uninstall webpack --save-dev Still Problem Remain Same :-
|
@AshishkrMishra I loaded beta.22 to fix several of these issues. Evidently they returned with beta.23, and there is other breakage in beta.27 |
The documentation, https://webpack.github.io/docs/configuration.html, still lists modulesDirectories as a valid config property. This really should call out differences in different versions Edit: Since I was linked to that section directly, I didn't see the alert at the top about that being the documentation for 1.x only. So frustrating. https://www.youtube.com/watch?v=-tGL-buZ94Y Eidt 2: Also love that the Documentation link at http://webpack.github.io/ doesn't actually take you to the documentation! Please see above link. |
I had the same error
This explains how to migrate webpack.config.js to version 2 format: |
tool developers: please stop delivering updates that crash all the time. Developer want to produce real apps to improve somehow people's life's. If someone wants to develop a tool, think twice because you supposed to make it good, make it functional, make it simple, make it works - ins't that suppose to be obvious ?? |
I second brunodevesa |
too bad we cannot go back to |
I see this error and tried the solutions mentioned above but did not work Error: WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
package.json webpack.config.js const getConfig = require('hjs-webpack'); var config = getConfig({ // CSS const findLoader = (loaders, match) => { config.postcss = [].concat( module.exports = config; |
Just downloaded the latest version and when running
npm start
command get thisThe text was updated successfully, but these errors were encountered: