Require('fs') is not working

With React and Webpack you might need to use imports, but I might be wrong :slight_smile:
Could you try like this?

import fs from "fs"

Also check this topic about ESM and CJS