添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
暗恋学妹的煎饼  ·  PitStop Pro. ...·  1 月前    · 
英俊的茴香  ·  Webflux + Jwt(es256) ...·  2 月前    · 

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

Challenge: Start a Working Express Server

Link to the challenge: