I need to read some environmental variables on my node/react project.
After I installed dotenv
npm install dotenv --save
I import dotenv in my js file:
require('dotenv').config();
then I get an error for "fs"
Module not found: Error: Can't resolve 'fs' in '/Users/Na/projects/laa/node_modules/dotenv/lib'
So, is this because "file system" is not installed?
how to fix it?
cheers