07-21-2023, 02:42 PM
My problem was I was using "ES6 module system" and in package.json I forgot to add:
{
"type": "module",
...
}
The "config.js" export was exporting the object inside "default" property because I was exporting `export default configDB;`
{
"type": "module",
...
}
The "config.js" export was exporting the object inside "default" property because I was exporting `export default configDB;`