electron-builder: can't find module 'auto-updater'
Why would I get this error?
It happens on this line:
if (isDevelopment || process.platform == "linux" || !electron.autoUpdater) {
return;
}
(and yes, itโs a signed app, via electron-builder).
ErrorCannot find module '../auto-updater'Error: Cannot find module '../auto-updater'
at Module._resolveFilename (module.js:438:15)
at Function.Module._resolveFilename (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.get [as autoUpdater] (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/electron.asar/browser/api/exports/electron.js:17:14)
at Object.App.autoUpdate (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/app.asar/main.js:108:66)
at EventEmitter.<anonymous> (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/app.asar/main.js:1267:7)
at emitOne (events.js:96:13)App.app
at EventEmitter.emit (events.js:188:7)module.js:440
throw err;
^
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 23 (8 by maintainers)
probably yes, i just add the require to the top and it works. Strange, but ok, not your problem ๐ sorry!