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.

Unexpected parsing of `not` query with Android stats

See original GitHub issue

If you have a browserslist-stats.json like the following:

{
	"android": {
		"3": 0,
		"4": 0,
		"66": 3,
		"2.1": 0,
		"2.2": 0,
		"2.3": 0,
		"4.1": 0,
		"4.2-4.3": 0,
		"4.4": 0.0008008986082384436,
		"4.4.3-4.4.4": 0
	},
	"and_chr": {
		"66": 3
	},
	"firefox": {
		"57": 0.01121258051533821,
		"58": 0.0014015725644172762,
		"59": 0.04695268090797875,
		"60": 0.10922254769851773,
		"61": 5.358712475397396,
		"62": 1.956895636904607,
		"3.5": 0,
		"3.6": 0
	}
}

And a browserslist config like so:

[production]
> 0.5% in my stats
not android <= 66
not and_chr <= 66
not firefox <= 62

The output of npx browserslist is

and_chr 66
android 66

As you expect to see, it excludes all versions of Firefox (specifically versions 62 and lower) even though they’re greater than 0.5% in stats, however, Android version 66 is still being targeted.

The expected output with this example config would be no targets whatsoever.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Oct 16, 2018

OH 😦 I hate instability of caniuse-db 😦

I will think

1reaction
aicommented, Oct 16, 2018

Got you. I asked about android 66.

I will look at it this week.

If you want to fix it faster, you can debug it yourself (it is simple few files project).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected character encountered while parsing value
I was using JsonConvert.DeserializeObject to deserialize response which is string and not json. Hence it was throwing the above error. – Bijay Nandagiri....
Read more >
CameraCharacteristics - Android Developers
When obtained by a client that does not hold the CAMERA permission, some metadata values are not included. The list of keys that...
Read more >
Parse LiveQuery client for Android. - GitHub
To solve this problem, we introduce Parse LiveQuery. This tool allows you to subscribe to a ParseQuery you are interested in. Once subscribed,...
Read more >
Error handling - Apollo GraphQL Docs
A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ...
Read more >
SQL Expression Parsing Error - GIS Stack Exchange
I try to find out how many countries start with a 'd' and have a 'n' in their name using the query. When...
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