Skip to content

Unknown version 59 of op_mob #537

@mischnic

Description

@mischnic
const browserslist = require("browserslist");

console.log(browserslist(["op_mob 59"], {mobileToDesktop: true}));

fails with

Uncaught Error [BrowserslistError]: Unknown version 59 of op_mob
    at Function.select (.../node_modules/browserslist/index.js:1101:17)
    at .../node_modules/browserslist/index.js:336:33
    at Array.reduce (<anonymous>)
    at resolve (.../node_modules/browserslist/index.js:318:18)
    at browserslist (.../node_modules/browserslist/index.js:443:21)
console.log(browserslist(browserslist(['op_mob 46']))); // == [ 'op_mob 46' ]
console.log(browserslist(browserslist(['op_mob 47']))); // Error

This has come up because Parcel first does browserslist(["> 0.25%"]) with the query read from some npm package.json, and then passing the result to Babel which calls browserslist again (parcel-bundler/parcel#5164 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions