I was facing the same Error like TypeError: fs.existsSync is not a function
So, I figured out that in import there is one extra line added automatically that was creating this issue.
after removing this line from import
import { TRUE } from "node-sass";
the issue has been resolved.