BrowserslistError: Unknown Browser Query `Electron`.
See original GitHub issueThis 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:
- Created 5 years ago
- Reactions:1
- Comments:24 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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
or3
does not.The PR I send earlier today also fixes this issue. So if that is ok, this issue can also be closed.