New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown version 59 of op_mob #537
Comments
Subscribed... |
Do you have an idea how to solve the problem? |
So when running Line 1085 in 7986f76
is: {
name: 'op_mob',
versions: [
'10', '11',
'11.1', '11.5',
'12', '12.1',
'59'
],
released: [
'10', '11',
'11.1', '11.5',
'12', '12.1',
'59'
],
releaseDate: {
'10': 1287100800,
'11': 1300752000,
'12': 1330300800,
'59': 1593475200,
'11.1': 1314835200,
'11.5': 1318291200,
'12.1': 1349740800
}
} With console.log(browserslist(["op_mob 46"], {mobileToDesktop: false})); // throws, expectedly?
console.log(browserslist(["op_mob 59"], {mobileToDesktop: false})); // doesn't throw, expectedly?
console.log(browserslist(["op_mob 59"], {mobileToDesktop: true})); // throws? The description
suggests that turning on that option should never produce more errors than before. Maybe here Lines 253 to 258 in 7986f76
|
There was one, unless you mean in the browserlist itself? https://blogs.opera.com/desktop/2018/11/opera-developer-59-with-built-in-crypto-wallet-access/ - (many posts on it, in fact.) |
Yes, in the browserslist database |
Browserslist uses Can I Use as a database. Can I Use doesn't have a separated data for mobile browser versions. This option just cover desktop browser versions to mobile, assuming that they have the same features. It is a hack. But Babel team needed it. |
Not sure if this is helpful or if there is something I can do to help? https://help.opera.com/en/opera-version-history/ According to those archives, 59 was only a beta on desktop. And looking at the Can I Use image below, appears to have been on Opera Mobile? Is that weird? (interesting, I guess it was a recent mobile version: https://blogs.opera.com/mobile/2020/06/opera-for-android-59/) |
Here's the Opera versions that's on Can I use: |
Here is what I did in order to (temporarily) fix the issue:
I am using |
So from what I can tell, I think there are solutions:
|
Can I Use doesn’t have version data of mobile browsers? There is no database to merge with.
I think this is the best solution since Can I Use data is not valid right now. |
At least on https://caniuse.com/ciu/comparison, I can see an "Opera Mobile" browser. The versions on that page are also in the snippet I posted here: #537 (comment) (
Do you know how to do this/who to ask? |
I mean that Can I Use has no separated version for ach browser. For Opera Mobile they have only the latest version.
Send PR to Can I Use and give me a link. I will support you in the PR. |
|
|
Opera 59 w never released. I will add a fix to |
Hi! Any updates? |
I have nothing new to contribute here just wanted to confirm I am experiencing the same issue and none of the suggestions in this issue or here parcel-bundler/parcel#5164 have worked so far. Thanks to everyone who is actively working on a solution. |
none of the solutions have worked for me either |
You deleted .parcel-cache, npm_modules, and package-lock.json (or yarn.lock), added the suggestions to your package.json? Then ran Using Yarn, this one worked for me:
I used Parcel default for browserlist, which meant I didn't include a .browserlistrc or anything related to it in package.json i.e. no where did I include I should add, I also removed Parcel using (if you wanted to use npm you'd do the same but, with the npm based suggestion from the other thread.) |
Fixed 674b53a |
The fix was released in 4.14.4 |
Thank you! |
Yes, thank you! Really appreciate everyone taking this on and so quickly. |
Just ran into this error with another package, @ai's "resolutions": {
"browserslist": "4.14.4",
"caniuse-lite": "1.0.30001192"
}, Confusing because the recommended |
@skipjack I got this using an angular project. Which configuration file did you add this fix to? |
The |
fails with
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 callsbrowserslist
again (parcel-bundler/parcel#5164 (comment))The text was updated successfully, but these errors were encountered: