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)

0 Likes

#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

0 Likes

#3

It too late, however I faced this error recently. I just commented the lines in index.js of simple-node-logger where the modules were loaded, hoping that the files would not be used. Those files might be used only for testing.

0 Likes

#4

The commenting out didnt impact the logging functionality. However its first day. I need to see what happens on the second day.

0 Likes