I have a app.js file that requires express as a constant:
const express = require('express');
Im getting the error:
p.js:1 Uncaught ReferenceError: require is not defined at app.js:1:17
after running my server by typing node app.js.
I am a beginner with node js. To my knowledge, I understand that there is server side and client side, and I am trying to require on the server side since im running Node.js. However the browser doesn't have support for require and is giving me the error, even though Im running the require server side.