Anyone seen this error before: MocksAppender?


#1

I’ve packaged Electron apps before but this is the first time I’ve seen this error:

I don’t have any tests written so I’m not sure why this is throwing an error.

Uncaught Error: Cannot find module './test/mocks/MockAppender’
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (C:\Users\206015378\AppData\Local\Programs\Orbit\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\206015378\AppData\Local\Programs\Orbit\resources\app.asar\node_modules\simple-node-logger\index.js:15:18)
at Object. (C:\Users\206015378\AppData\Local\Programs\Orbit\resources\app.asar\node_modules\simple-node-logger\index.js:20:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)


#2

Never figured out why. I just changed from using simple-node-logger to electron-log and that fixed it.

https://github.com/megahertz/electron-log