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.

Unknown version 76 of edge

See original GitHub issue

Hey,

After updating babel, prettier and browserslist I found an error while building the project

We have .browserslist-es2017 file like:

[es2017]
edge >= 16
...
unreleased edge versions
...

We get browsers like that:

const browsers = browserslist(undefined, {
    config: path.join(__dirname, './.browserslist-es2017'),
    env: 'es2017',
});

The list has edge versions as follows:

[…, edge 76,edge 18,edge 17,edge 16,…]

Here you see edge 76

The error started while processing: “node_modules/@babel/preset-env/lib/index.js”

at Function.select (node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:1086:17)
        at node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:336:33
        at Array.reduce (<anonymous>)
        at resolve (node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:318:18)
        at browserslist (node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:443:21)
        at getTargets (node_modules/@babel/helper-compilation-targets/lib/index.js:202:48)
        at _default (node_modules/@babel/preset-env/lib/index.js:246:57)
        at node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
        at node_modules/@babel/core/lib/config/full.js:199:14
        at Generator.next (<anonymous>)

More information:

  1. I tried last version of babel and browserslist, it fails as well
  2. Current versions in package.json are
"devDependencies": {
    "@babel/core": "7.9.0",
    "@babel/plugin-proposal-class-properties": "7.8.3",
    "@babel/plugin-proposal-decorators": "7.8.3",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
    "@babel/plugin-proposal-numeric-separator": "7.8.3",
    "@babel/plugin-proposal-optional-chaining": "^7.9.0",
    "@babel/plugin-transform-object-assign": "7.8.3",
    "@babel/plugin-transform-runtime": "7.9.0",
    "@babel/preset-env": "7.9.5",
    "@babel/preset-react": "7.9.4",
    "@babel/preset-typescript": "7.9.0",
    "@babel/runtime": "7.9.2",
   ...
   "browserslist": "4.9.1",
  ...
}
  1. I checked that in "@babel/preset-env": "7.9.5" version of browserslist is "^4.9.1" so 4.9.1 should be a fit, but it’s not

  2. It might have similar problem as the comment which describes it - https://github.com/parcel-bundler/parcel/issues/1036#issuecomment-387887471

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, May 27, 2020

If Yandex wants to support Russian open source, you can tell your manager about our Open Collective

https://opencollective.com/browserslist

1reaction
aicommented, May 27, 2020

@Beraliv we have a special helper to update all caniuse-lite dependencies:

npx browserslist@latest --update-db
Read more comments on GitHub >

github_iconTop Results From Across the Web

BrowserslistError: Unknown version 67 of android
I have created one angular library using angular 8 and CLI 8 . I am trying to build the library, but I am...
Read more >
Microsoft Edge "Unknown" update now rolling out - YouTube
The release notes do not tell us what this latest point release update fixes or addresses, but currently I would suggest that we...
Read more >
Edge Of Paradise - "The Unknown" (Official Album Trailer)
From the album THE UNKNOWN. Buy or Stream: https://orcd.co/eoptheunknown | Watch more Edge Of Paradise videos: ...
Read more >
Windows Updates are installing, but showing "Unknown ...
Unknown means, either that the client system did not complete the software update scan or the site server did not receive the software...
Read more >
Reliable Detection of Unknown Cell-edge Users via ...
[10] J. D. Carroll, “Generalization of canonical correlation analysis to three or more sets of variables,” in Proceedings of the 76th annual convention...
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