MobX tab is not added in Electron
I have added MobX to my electron app using electron-devtools-installer
installExtension(MOBX_DEVTOOLS) .then((name) => { console.log(Added Extension: ${name}); }) .catch((err) => console.log('An error occurred: ', err));
Console log says: Added Extension: MobX Developer Tools
But there is no MobX tab
Make sure you launched devtools after installation has been completed. I had a same problem.
You have to install mobx-devtools extention in Electorn after using electron-devtools-install. Using Electron API loadExtension
@dongdongZhang007 can you say more? In the current version of electron-devtools-install, that library does the loadExtension itself:
return electron_1.session.defaultSession
.loadExtension(extensionFolder, loadExtensionOptions)
I've confirmed that this code is running, but it does give this warning:
(node:28704) ExtensionLoadWarning: Warnings loading extension at C:\Users\hatto\AppData\Roaming\lameta\extensions\pfgnfdagidkfgccljigdamigbcnndkod:
Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.
Permission 'contextMenus' is unknown or URL pattern is malformed.
So my question is, are you loading it again? If so, can you share the code? Do you hard-code the path? Thanks!