question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ExtensionLoadWarning for React Devtools

See original GitHub issue

I’m using https://github.com/electron/electron-quick-start.

I installed electron-devtools-installer and wired it up as per the README: https://github.com/MarshallOfSound/electron-devtools-installer#usage.

When I run the Electron app, I get the following message in the console, and React Devtools never loads in the app/browser.

(node:67218) ExtensionLoadWarning: Warnings loading extension at /Users/tysonnero/Library/Application Support/electron-quick-start/extensions/fmkadmapgofadopljbjfkapdkoienihi: Unrecognized manifest key 'browser_action'. Unrecognized manifest key 'minimum_chrome_version'. Unrecognized manifest key 'update_url'. Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system. 
Added Extension:  React Developer Tools
"electron": "^9.1.1",
"electron-devtools-installer": "^3.1.1"

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:28
  • Comments:21

github_iconTop GitHub Comments

8reactions
ethankalecommented, Jul 28, 2020

Same issue, also same electron and electron-devtools-installer version, trying to load VUEJS-DEVTOOLS.

6reactions
Coding-Kiwicommented, Jun 13, 2021

For me it was the fact that I was using the file:// protocol, this can be worked around by using allowFileAccess

installExtension(VUEJS3_DEVTOOLS, {
    loadExtensionOptions: {
        allowFileAccess: true,
    },
})

The warning still stays, but the devtools work!

I fiddled around with loading the extension manually. I copied the extension folder from my chrome userdata folder and loaded it like this:

import { session } from 'electron';

let ext_path = path.resolve(".", "extensions", "vue-devtools");
await session.defaultSession.loadExtension(ext_path, {
    allowFileAccess: true
});

I modified the manifest.json inside the extension folder (deleted the browser_action, update_url keys, the "contextMenus" entry in permissions) and deleted the _metadata directory.

This resolves the ExtensionLoadWarning and the devtools still work, but as it is said everywhere the warning has nothing to do with the extension not working, the main issue is most propably allowFileAccess

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load react dev tools in electron - Stack Overflow
I'm trying to load React and Redux dev tools in electron, ... electron main.js (node:8189) ExtensionLoadWarning: Warnings loading extension ...
Read more >
DevTools Extension - Electron
Electron supports Chrome DevTools extensions, which can be used to extend the ability of Chrome's developer tools for debugging popular web frameworks.
Read more >
React Developer Tools - Finsemble
React Developer Tools are debugging tools for the open-source React library. It allows you to inspect the React component hierarchies in Chrome's Developer ......
Read more >
react-devtools - npm
react -devtools. This package can be used to debug non-browser-based React applications (e.g. React Native, mobile browser or embedded ...
Read more >
Higher Order Components - React DevTools tutorial
Higher order components (or HOCs) often provide a custom "displayName" in order to be more easily identifiable in React warnings and in DevTools....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found