Skip to content

Demo doesnt work, "Webpack has been initialised using a configuration object that does not match the API schema." #204

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

Closed
R4YM3 opened this issue Oct 10, 2018 · 1 comment

Comments

@R4YM3
Copy link

R4YM3 commented Oct 10, 2018

Demo does not work.
Executed:

git clone git@github.com:gajus/babel-plugin-react-css-modules.git
cd ./babel-plugin-react-css-modules/demo
npm install
npm start

got errors i dont got webpack dev server
did:

npm i -g webpack-dev-server
npm start

got errors i dont got webpack
did:

npm i -g webpack
npm start

got errors webpack moved to webpack-cli
did:

npm i -g webpack-cli
npm start

Got errors:

npm start

> @ start /path/to/project/babel-plugin-react-css-modules/demo
> webpack-dev-server

✖ 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.module has an unknown property 'loaders'. These properties are valid:
   object { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
   -> Options affecting the normal modules (`NormalModuleFactory`).
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `webpack-dev-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /path/to/logs/.npm/_logs/2018-10-10T08_14_09_713Z-debug.log
sthzg pushed a commit to sthzg/babel-plugin-react-css-modules that referenced this issue Nov 19, 2018
sthzg pushed a commit to sthzg/babel-plugin-react-css-modules that referenced this issue Nov 19, 2018
@gajus gajus closed this as completed in 6e105bb Nov 19, 2018
@gajus
Copy link
Owner

gajus commented Nov 19, 2018

🎉 This issue has been resolved in version 3.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants