看起来 Electron 10 不适用于 React 和 Redux DevTools Chrome 扩展。加载 Redux 扩展时,出现以下错误。
(node:17777) ExtensionLoadWarning: Warnings loading extension at /home/perttu/.config/Electron/extensions/lmhkpmbekcpmknklioeibfkpmmfibljd: Unrecognized manifest key 'commands'. Unrecognized manifest key 'homepage_url'. Unrecognized manifest key 'page_action'. Unrecognized manifest key 'short_name'. Unrecognized manifest key 'update_url'. Permission 'notifications' is unknown or URL pattern is malformed. Permission 'contextMenus' is unknown or URL pattern is malformed. Permission 'tabs' is unknown or URL pattern is malformed. Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.
Error: Exited with code 9
加载 React 开发者工具时也会出现同样的错误。
(node:19201) ExtensionLoadWarning: Warnings loading extension at /home/perttu/.config/google-chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/4.8.2_0: Unrecognized manifest key 'browser_action'. Unrecognized manifest key 'minimum_chrome_version'. Unrecognized manifest key 'update_url'. Manifest contains a differential_fingerprint key that will be overridden on extension update. Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.
我怀疑问题出在 Electron 本身,因为虽然 Redux 选项卡在 UI 中可见,但 window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ 没有定义。Redux 选项卡本身抱怨没有找到商店。确保按照说明进行操作。
通过克隆https://github.com/electron-react-boilerplate/electron-react-boilerplate并将 Electron 版本更改为 10很容易重现该问题。
那么,是否有人成功地在 Electron 10 上加载了 React 或 Redux 扩展?