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.

`minor.push` is not a function

See original GitHub issue

Hi,

I’m facing an similar issue than #409 but with minor

TypeError: minor.push is not a function
     at versionsListToRanges (/Users/fdubost/Workspaces/my_project/node_modules/browserslist-useragent-regexp/lib/index.js:1177:17)
     at browsers.forEach (/Users/fdubost/Workspaces/my_project/node_modules/browserslist-useragent-regexp/lib/index.js:1212:24)
     at Map.forEach (<anonymous>)
     at browserVersionsToRanges (/Users/fdubost/Workspaces/my_project/node_modules/browserslist-useragent-regexp/lib/index.js:1211:12)
     at getUserAgentRegExps (/Users/fdubost/Workspaces/my_project/node_modules/browserslist-useragent-regexp/lib/index.js:1511:26)
     at getUserAgentRegExp (/Users/fdubost/Workspaces/my_project/node_modules/browserslist-useragent-regexp/lib/index.js:1525:19)

I’m using:

  • node 10.17.0
  • yarn 1.12.3
  • browsersist-useragent-regexp last version (2.0.2)
  • the browsers configuration is ['Safari < 11']

Thank you!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fdubostcommented, Apr 23, 2020

Thank you @dangreen ! The error is fixed but I still have an issue: [ Safari < 11 ] catches this user-agent which is a Chrome 80 Mozilla/5.0 (Linux; Android 8.0.0; Bouygtel4K Build/CALIFORNIE; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.162 Mobile Safari/537.36

1reaction
dangreencommented, Apr 22, 2020

@fdubost

v2.0.3

I hope what finally fixed this bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: data.push is not a function - Stack Overflow
Your data variable contains an object, not an array, and objects do not have the push function as the error states. To do...
Read more >
vue js push is not a function - Laracasts
Hi, i am making a small app with laravel and vuejs. I'm getting an error, the push is not a function when I...
Read more >
How To Get Around .Push Is Not A Function In JavaScript
It means that the expression did not return a function object This is a common JavaScript error that happens when you try to...
Read more >
.push - Salesforce Developer Community
Hi Sonal, Greetings to you! It is a JavaScript Array push method. push() function is used to push one or more values into...
Read more >
Pushing a variable on to an array results in TypeError
Pushing a variable on to an array results in TypeError: array.push is not a function ... I spent a lot of time looking...
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