Atom: 1.45.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15.5
Thrown From: dark-mode package 4.0.2
Stack Trace
Uncaught TypeError: Cannot read property 'cancel' of undefined
At /Users/DrodMantras/.atom/packages/dark-mode/lib/sensors/sun.js:37
TypeError: Cannot read property 'cancel' of undefined
at _default.deactivate (/packages/dark-mode/lib/sensors/sun.js:37:20)
at _default.deactivateSensor (/packages/dark-mode/lib/sensors/sensor.js:137:12)
at /packages/dark-mode/lib/dark-mode.js:85:79
at Array.forEach (<anonymous>)
at Object._setSensorsState (/packages/dark-mode/lib/dark-mode.js:85:18)
at /packages/dark-mode/lib/dark-mode.js:75:12
at emitter.on (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:334653)
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1214120)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1215561)
at Config.emitChangeEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:337141)
at Config.setRawValue (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:334381)
at Config.set (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:330175)
at Object._toggle (/packages/dark-mode/lib/dark-mode.js:94:17)
at HTMLElement.darkModeToggle (/packages/dark-mode/lib/dark-mode.js:67:38)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349290)
at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:699460)
at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:875983)
at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:870862)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349290)
at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1254747)
at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1250881)
at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284496)
[Enter steps to reproduce:]
Atom: 1.45.0 x64 Electron: 4.2.7 OS: Mac OS X 10.15.5 Thrown From: dark-mode package 4.0.2
Stack Trace
Uncaught TypeError: Cannot read property 'cancel' of undefined
Commands
Non-Core Packages