`minor.push` is not a function
See original GitHub issueHi,
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:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you @dangreen ! The error is fixed but I still have an issue:
[ Safari < 11 ]
catches this user-agent which is a Chrome 80Mozilla/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
@fdubost
v2.0.3
I hope what finally fixed this bug.