Failed build (The platform "linux" is incompatible with this module)

here a similar issue https://answers.netlify.com/t/fork-ts-checker-webpack-plugin-incompatible-with-yarn/6013 i tried to change the yarn version with the variable but same issue