I get this error when using sort-css-media-queries via postcss-sort-media-queries in the browser :
TypeError: fs.existsSync is not a function
at loadConfig (load-config.js?fb83:15)
at eval (index.js?8452:3)
at Object../node_modules/sort-css-media-queries/lib/index.js (chunk-vendors.js:7923)
at __webpack_require__ (index.js:854)
at fn (index.js:151)
at module.exports (VM17499 index.js:20)
at Processor.normalize (processor.js?58d3:43)
at new Processor (processor.js?58d3:10)
at postcss (postcss.js?3984:26)
at postCSS (VM17457 getExportedHTML.js:325)
fs is an empty object in the load-config.js file. I guess this is normal as I am running in the browser.
Maybe you need to add a if statement to check if fs is actually defined.
Hi,
I get this error when using sort-css-media-queries via postcss-sort-media-queries in the browser :
fs
is an empty object in the load-config.js file. I guess this is normal as I am running in the browser.Maybe you need to add a if statement to check if
fs
is actually defined.Thanks