browserslist: BrowserslistError: Unknown Browser Query `Electron`.
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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 24 (12 by maintainers)
Commits related to this issue
- remove initialization functions (close #323) (#326) — committed to tats-u/browserslist by ariarzer 2 years ago
Use
last 1 electron version.The core idea of Browserslist is to always specify exact target browsers. This is why just
electrondo not work. Browserslist expect exact version.There was no Electron 1. This is why second query do not work.