Skip to content Skip to sidebar Skip to footer

Typeerror: App.get Is Not A Function

I'm trying to use express in a prototype function ioServer() { } module.exports = ioServer; ioServer.prototype.start = function() { var app = require('express') va

Solution 1:

Your app should be an instance of express.

For example, you could include it like this:

var app = require('express')();

Solution 2:

when you require express you forgot to place ( ) try this

const app = require('express')();

Post a Comment for "Typeerror: App.get Is Not A Function"