cosmiconfig: Version 2.2.0 and 2.2.2 break webpack build (Module build failed: TypeError: Invalid PostCSS Plugin found: [0])
Hello,
On previous week you have released version 2.2.0 which breaks our webpack build. Your revert in 2.2.1 fixed our problem but today I see that you publish version 2.2.2 which again breaks build.
Exception stack trace
[04:10:19] Module build failed: TypeError: Invalid PostCSS Plugin found: [0]
[04:10:19] /.../node_modules/postcss-load-plugins/lib/plugins.js:32:17
[04:10:19] at Array.forEach (native)
[04:10:19] (/.../node_modules/postcss-load-plugins/lib/plugins.js:21:15)
[04:10:19] /.../node_modules/postcss-load-config/index.js:64:18
Versions of npm modules
postcss-load-plugins@2.3.0
[04:05:16] [Step 1/2] │ ├─┬ postcss-loader@1.2.2
[04:05:16] [Step 1/2] │ │ └─┬ postcss-load-config@1.2.0
[04:05:16] [Step 1/2] │ │ ├─┬ cosmiconfig@2.2.2
https://github.com/michael-ciniawsky/postcss-load-config/blob/master/package.json
Thanks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 20 (10 by maintainers)
Commits related to this issue
- fix: Set argv opt to false for cosmiconfig By default, cosmiconfig looks for --config flag value. This conflicts with the webpack flag. Setting argv to false resolves the issue. Related issue - davi... — committed to sudo-suhas/postcss-load-config by sudo-suhas 7 years ago
- fix(index): Set argv opt to false for cosmiconfig By default, cosmiconfig looks for --config flag value. This conflicts with the webpack flag. Setting argv to false resolves the issue. Related issue... — committed to sudo-suhas/postcss-load-config by sudo-suhas 7 years ago
@sudo-suhas Thanks,
The problem has gone
@pcourt, @maksimr Could you please update your postcss-loader to
1.3.3and check again? That should fix the issue.