Open zoxon opened 8 years ago
@zoxon Show full stacktrace please
@TrySound
gulp-stylus
will rename '.styl' to '.css', then ‘stylelint’ will pass opts.from
to cosmiconfig
, then cosmiconfig
will throw this error.
@gucong3000 Why cosmiconfig loads css?
At the time of the release, There's code like this
stat = fs.statSync(filepath);
return stat.isDirectory();
https://github.com/davidtheclark/cosmiconfig#loadsearchpath-configpath This function accepts file paths or folder paths
Other tools that depend on postcss
in the future may run into this problem when running under gulp-postcss
@TrySound Sory it was a long time ago
I think it was my mistake.
When I'm set configFile
option stylefmt stop throwing this error.
- stylefmt(),
+ stylefmt({
+ configFile: '.stylelintrc'
+ }),
This is the error in console, only this two errors
Error: ENOENT: no such file or directory, stat 'E:\OpenServer\domains\html\gulp-front\source\static\styles\main.css'
at Error (native)
Error: ENOENT: no such file or directory, stat 'E:\OpenServer\domains\html\gulp-front\source\static\styles\reset.css'
at Error (native)
After the update I get the error
I'm use gulp-postcss wiht stylefmt, error is disappear if disable this plugin.
Gulp task
Full gulpfile.js My .stylelintrc and .postcss-sorting.json
My app
Test on Windows 8.1 x64, Windows 7 x64, Windows 10 x64 NPM 3.5.3 Node.js 4.2.4 and 6.9.1
PS. Change task for readability