Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version of Electron: 12.0.7 does not match required range >=1.2.1 #187

Closed
cawa-93 opened this issue May 13, 2021 · 2 comments
Closed

Version of Electron: 12.0.7 does not match required range >=1.2.1 #187

cawa-93 opened this issue May 13, 2021 · 2 comments

Comments

@cawa-93
Copy link

cawa-93 commented May 13, 2021

Recently, I started receiving the next Error on installing VUEJS3_DEVTOOLS extension:

Failed install extension: Error: Version of Electron: 12.0.7 does not match required range >=1.2.1 for extension ljjemllljcmogpfapbkkighbhhppjdbg

My code:

  app.whenReady()
    .then(() => import('electron-devtools-installer'))
    .then(({default: installExtension, VUEJS3_DEVTOOLS}) => installExtension(VUEJS3_DEVTOOLS, {
      loadExtensionOptions: {
        allowFileAccess: true,
      },
    }))
    .catch(e => console.error('Failed install extension:', e));

I also can't install any other extension.

Even if I change the range:

installExtension({...VUEJS3_DEVTOOLS, electron: '12.0.7'})
Error: Version of Electron: 12.0.7 does not match required range 12.0.7 for extension ljjemllljcmogpfapbkkighbhhppjdbg

OR

installExtension({...VUEJS3_DEVTOOLS, electron: '*'})
 Error: Version of Electron: 12.0.7 does not match required range * for extension ljjemllljcmogpfapbkkighbhhppjdbg
@cawa-93
Copy link
Author

cawa-93 commented May 13, 2021

@cawa-93 cawa-93 closed this as completed May 13, 2021
@ssalbdivad
Copy link

In case anyone is looking for a workaround for this, just passing the extension's id prop directly bypasses the version check altogether:

import installExtension, {VUEJS3_DEVTOOLS} from "electron-devtools-installer"

installExtension(VUEJS3_DEVTOOLS.id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants