Can't resolve 'fs' in cloudflare workers

I’m developing a worker in which I need to use node js fs module.
But I’m getting error like below:
Module not found: Error: Can't resolve 'fs' i

Can anyone help me who has faced this issue or am I doing something wrong ? Please correct me.

Thanks

A worker environment is not Node.js, so you cant use these modules. Also, you wouldnt have access to the file system anyhow.