gajus / gajus/babel-plugin-react-css-modules
Trying to use with `postcss-easy-import` - Async error
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to run this using the `postcss-easy-import` plugin. I've got everything configured "properly" but I get the following error regarding async plugin execution. Is there any way to work around this? Everything runs fine with other (presumably synchronous) plugins.
Thanks very much.
**Error:**
```
Use process(css).then(cb) to work with async plugins
at LazyResult.sync (C:\projects\myapp\node_modules\postcss\lib\lazy-result.es6:310:23)
```
**.babelrc plugin config:**
```
"plugins": [
"add-module-exports",
"dynamic-import-webpack",
"transform-remove-console",
"transform-remove-debugger",
"minify-mangle-names",
"transform-react-jsx",
[
"react-css-modules",
{
"generateScopedName": "[local]___[hash:base64:5]",
"filetypes": {
".scss": {
"syntax": "postcss-scss",
"plugins": ["postcss-easy-import"]
}
}
}
]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.