mobx-devtools icon indicating copy to clipboard operation
mobx-devtools copied to clipboard

MobX tab is not added in Electron

Open rendomnet opened this issue 5 years ago • 3 comments

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

rendomnet avatar Jan 12 '21 03:01 rendomnet

Make sure you launched devtools after installation has been completed. I had a same problem.

BasixKOR avatar Aug 04 '21 12:08 BasixKOR

You have to install mobx-devtools extention in Electorn after using electron-devtools-install. Using Electron API loadExtension

zhangdongyan6 avatar Jun 20 '22 02:06 zhangdongyan6

@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!

hatton avatar Dec 09 '22 22:12 hatton