I am trying to build my react and node.js web app but fail to build ever since fixing packages.
i get the following error
Module not found: Error: Can't resolve 'fs' in 'my-app/node_modules/dotenv/lib'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I have tried to clear the cache of node_modules, remove package-lock.json, re install with npm and re-build, but nothing works.
Does anyone know how to solve this please?