gajus / gajus/babel-plugin-react-css-modules
Trying to use with `postcss-easy-import` - Async error
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2k
- Forks
- 159
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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"]
}
}
}
]
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, die .babelrc-Konfiguration mit dem postcss-easy-import-Plugin und dem gemeldeten asynchronen PostCSS-Fehler zu reproduzieren. Verfolge anschließend, wie das .scss-Dateityp-Plugin ausgeführt wird, und überprüfe dann, ob die Integration mit asynchroner Verarbeitung funktioniert, oder dokumentiere einen bestätigten Workaround.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- build-system, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100