Not sure what's wrong, I have a node app and one of the imports uses date.js but it is undefined
I have tried
const data = require('date')const data = require('datejs')const data = require('date.js')
error line
let baseTime = date(messageArray[index - 1]);
error message
UnhandledPromiseRejectionWarning: ReferenceError: date is not defined
Not sure what's wrong, I have a node app and one of the imports uses date.js but it is undefined I have tried
const data = require('date')
const data = require('datejs')
const data = require('date.js')
error line
let baseTime = date(messageArray[index - 1]);
error messageUnhandledPromiseRejectionWarning: ReferenceError: date is not defined