{ ReferenceError: cov_eneajp1f5 is not defined
at fn (:6:5)
at javascript (:24:21)
at :39:3
at EventEmitter.electron.ipcRenderer.on (/Users/jeremiahmcallister/Developer/Desirelist/desirelist-api/application/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/init.js:63:28)
at emitMany (events.js:146:13)
at EventEmitter.emit (events.js:223:7) code: -1 }
When I create a test file with the above code and run it using node test.js it works.
But, when I try to call it from a node api it doesn't.
It seems like it doesn't recognize document.
I say that because when I run an example like this
I tried the call this way:
and this way:
and with both I get:
{ ReferenceError: cov_eneajp1f5 is not defined at fn (:6:5)
at javascript (:24:21)
at :39:3
at EventEmitter.electron.ipcRenderer.on (/Users/jeremiahmcallister/Developer/Desirelist/desirelist-api/application/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/init.js:63:28)
at emitMany (events.js:146:13)
at EventEmitter.emit (events.js:223:7) code: -1 }
When I create a test file with the above code and run it using node test.js it works. But, when I try to call it from a node api it doesn't. It seems like it doesn't recognize document.
I say that because when I run an example like this
from the api it works fine.
Any ideas why?