const nodemailer = require('nodemailer');
const { google } = require('googleapis');
I wrote the code for lessons on the Internet for the node js. But I need to do this for the site so I copied it. After running it gave me this problem (not with command node app.js
, it starts in browser as default js code): Uncaught ReferenceError: require is not defined
. Please tell me what can be done.