gajus / gajus/babel-plugin-react-css-modules

Trying to use with `postcss-easy-import` - Async error

Open
#158 4 comments 1 reaction 0 assignees View on GitHub
question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.