- I have checked the troubleshooting
Bug report
I am in the process of fixing require('electron').remote
from the latest version of Inkdrop as it no longer works.
require('electron').remote
is no longer available for plugins. Userequire('@electron/remote')
instead.
Related issue:
I am working on replacing @electron/remote
in this branch, but when I switch notes several times, I get the following error and the app crashes.
Do you know what causes this?
Error: Cannot get property '_id' on missing remote object 591
at throwRPCError (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/@electron/remote/dist/src/main/server.js:196:19)
at /Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/@electron/remote/dist/src/main/server.js:483:13
at IpcMainImpl.<anonymous> (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/@electron/remote/dist/src/main/server.js:322:27)
at IpcMainImpl.emit (node:events:394:28)
at IpcMainImpl.emit (node:domain:475:12)
at Object.<anonymous> (node:electron/js2c/browser_init:161:10774)
at Object.emit (node:events:394:28)
at Object.emit (node:domain:475:12)
Environment
- Platform: macOS
- Platform version: Monterey
- App Version:5.5.0
How to reproduce
git clone git@github.com:seachicken/inkdrop-pomodoro-edit.git -b issue7-wip
cd inkdrop-pomodoro-edit
ipm link --dev
- Switch the note about 5 times
- An error occurs