The source code is :
const Sequelize = require('sequelize');
const sequelize = new Sequelize(process.env["DSN"]);
When trying to exec via node (I insist, I'm not trying to exec this code in my browser), I get :
$ node Sequelize.js
file:///Users/snwfdhmp/project/Sequelize.js:1
const Sequelize = require('sequelize');
^
ReferenceError: require is not defined
at file:///Users/snwfdhmp/project/Sequelize.js:1:19
at ModuleJob.run (internal/modules/esm/module_job.js:138:23)
at async Loader.import (internal/modules/esm/loader.js:178:24)
Why does that happen ? Every article on the internet says "Don't use require() in browsers", but I'm not using a browser.
I'm using node v14.4.0 on macOS 10.15.5.