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.

BrowserslistError: Unknown Browser Query `Electron`.

See original GitHub issue

This is happening via @babel/preset-env, using the command line and also at https://browserl.ist/?q=electron

$ npx browserslist "electron"
browserslist: Unknown browser query `electron`. Maybe you are using old Browserslist or made typo in query.
$ npx browserslist "electron 1"
browserslist: Unknown version 1 of electron
$ npx browserslist --version
browserslist 4.3.4

Strangely, running npm test in browserslist succeeds.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
aicommented, Dec 4, 2018

Use last 1 electron version.

The core idea of Browserslist is to always specify exact target browsers. This is why just electron do not work. Browserslist expect exact version.

There was no Electron 1. This is why second query do not work.

0reactions
mutechcommented, Dec 6, 2018

Part of the problem I had is that the current implementation of electron queries require exact matches of the version provided by electron-2-chromium, f.e. electron 3.0 works, 3.0.9 or 3 does not.

The PR I send earlier today also fixes this issue. So if that is ok, this issue can also be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BrowserslistError: Unknown browser kaios - Stack Overflow
I took a look into the code and it's because the update of caniuse which support query for Kai OS(some mobile OS in...
Read more >
browserslist @ 2.4.0 .. 2.5.0 - Package Diff
+ throw new BrowserslistError('Unknown browser query `' + selection + '`') ... -could return a compatible Browserslist query for your (major) Electron ......
Read more >
Renovate Bot Package Diff
Fix released versions detection for queries like `last N browsers`. ... + throw new BrowserslistError('Unknown version ' + version + ' of Node.js')....
Read more >
Unknown browser query `dead`的问题_要做前端的一股清流的 ...
最近在使用create-react-app构建项目的时候,执行npm run build命令,报错:Module build failed: BrowserslistError: Unknown browser query `dead原因:在git上搜了 ...
Read more >
Vue browserslisterror 未知浏览器查询死机, Browserslisterror: 未知的 ...
Module build failed: BrowserslistError: Unknown browser query `dead 使用Vue + ... npx browserslist "electron 1" browserslist: Unknown version 1 of electron ...
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