require('dotenv').config('./.env'); Should be: require('dotenv').config({ path: './.env' }); Fatal type error.
require('dotenv').config('./.env');
Should be:
require('dotenv').config({ path: './.env' });
Fatal type error.