codefordurham/BikeSafety

Can't start app from /addAccident path

Opened this issue · 0 comments

We see this exception on the console:

TypeError: res.sendFile is not a function
    at /Users/danesummers/Documents/classes/BikeSafety/routes/GUI.js:11:13
    at callbacks (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/lib/router/index.js:164:37)
    at param (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/lib/router/index.js:138:11)
    at param (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/lib/router/index.js:135:11)
    at pass (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/lib/router/index.js:145:5)
    at Router._dispatch (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/lib/router/index.js:173:5)
    at Object.router (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/lib/router/index.js:33:10)
    at next (/Users/danesummers/Documents/classes/BikeSafety/node_modules/express/node_modules/connect/lib/proto.js:174:15)
    at SendStream.error (/Users/danesummers/Documents/classes/BikeSafety/node_modules/serve-static/index.js:120:7)
    at emitOne (events.js:77:13)