eslint-plugin-css-modules icon indicating copy to clipboard operation
eslint-plugin-css-modules copied to clipboard

Does not play well with Node.12, Visual Code and possibly other Electron based editors

Open satazor opened this issue 6 years ago • 1 comments

After digging deep into the code, I concluded that all the problems came from using deasync.

  • In Visual Code, I get the following error:
Screenshot 2019-11-01 at 17 49 45

This is because deasync is not compatible with Electon.

  • On Node.12, running eslint hangs whenever I use the plugin.

To solve these problems, we could instead use Node's ChildProcess#execSync or ChildProcess#spawnSync to run postcss-cli instead. The downside is that it would be a lot slower, specifically when linting large directories.

satazor avatar Nov 01 '19 17:11 satazor

@satazor have you tried with more recent versions of Node.js? (trying to understand if your ticket means v12 and higher, or v12 only) v12 through v15 as well as v17 and v19 are EOL'ed at this point; v16 is in maintenance mode, so the Node team recommends using v18 or v20. We've been using both sucessfully, lately v20 exclusively.

astorije avatar Aug 22 '23 18:08 astorije