Tell us what’s happening:
Describe your issue in detail here.
No matter what I do for this problem I’m getting errors on Replit and locally (VSCode). From both I’m getting:
TypeError: Router.use() requires a middleware function but got a Object
at Function.use (/home/runner/boilerplate-express-1/node_modules/express/lib/router/index.js:458:13)
The code is really simple so I’m (somewhat) doubtful that it’s myApp.js.
Your code so far
var express = require('express');
var app = express();
app.get("/", (req, res) => {
res.send("Hello Express");
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0