Skip to content

Error running after generating with sass options #84

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
codestitch opened this issue Jul 3, 2017 · 2 comments
Closed

Error running after generating with sass options #84

codestitch opened this issue Jul 3, 2017 · 2 comments

Comments

@codestitch
Copy link

Hi. I followed these procedures from installing npm install -g yo and npm install -g generator-react-webpack-redux to running yo react-webpack-redux.

Here's the config I choose:
style: scss
enable css module support: no
enable postcss: yes

After running npm run start I got an error for post css. Here's the error:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. configuration has an unknown property 'postcss'. These properties are valid: object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? } For typos: please correct them. For loader options: webpack 2 no longer allows custom properties in configuration. Loaders should be updated to allow passing options via loader options in module.rules. Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader: plugins: [ new webpack.LoaderOptionsPlugin({ // test: /\.xxx$/, // may apply this only for some modules options: { postcss: ... } }) ]

@MarcoScabbiolo
Copy link

MarcoScabbiolo commented Jul 3, 2017

Refer to this comment on #70 to solve this problem.

@codestitch
Copy link
Author

Thank you.

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

2 participants