Closed ghost closed 6 years ago
This is a bug in the last release. Essentially, this code assumes it is running on a browser. I assume you are running JSNLog on the server as a NodeJs program.
If you run jsnlog.js only on the server, you can safely remove that line JL._createXMLHttpRequest = function () { return new XMLHttpRequest(); }; because JL._createXMLHttpRequest is only used in the AjaxAppender, which is only used on the browser.
I'll come up with a permanent fix as soon as I can.
I fixed this in version 2.25.1.
Yesterday I build an already running application and this error occurs on app.js on line
var JL = require('jsnlog').JL
Running the application with nodemon, it returns this error:
Anybody can help me, please? Thanks in advance
Alby