2.2.0 gives "regexps is not defined" error
See original GitHub issueonce require('useragent')()
, you will see
ReferenceError: regexps is not defined
at updating (/------/node_modules/useragent/index.js:22:15)
at parsing (//------/node_modules/useragent/lib/update.js:39:11)
at Object.generate (/------/node_modules/useragent/lib/update.js:214:3)
at Object.parse (/------/node_modules/useragent/lib/update.js:174:11)
at reading (/------/node_modules/useragent/lib/update.js:38:17)
at /------/node_modules/async-listener/glue.js:188:31
at tryToString (fs.js:499:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:487:12)
my node is v8.0.0
after rolling back to v2.1.13, it works
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Installing pypy3 failed with "Error: IS_WINDOWS is not defined"
Since this just started happening, I'm guessing it's a regression in the 2.2.0 release.
Read more >Issue 2636: Adding a new regex module (compatible with re)
msg65513 ‑ (view) Author: Jeffrey C. Jacobs (timehorse) Date: 2008‑04‑15 11:57
msg65593 ‑ (view) Author: Jeffrey C. Jacobs (timehorse) Date: 2008‑04‑17 22:06
msg65613 ‑ (view)...
Read more >NameError: name 're' is not defined [duplicate] - Stack Overflow
So currently webpage is a reference to the .read method, it's not the result of the .read() call. Share. Share a link to...
Read more >7.2. re — Regular expression operations — Python 2.7.2 ...
The solution is to use Python's raw string notation for regular expression patterns; backslashes are not handled in any special way in a...
Read more >Python Regular Expressions - Google Developers
Regular expressions are a powerful language for matching text patterns. This page gives a basic introduction to regular expressions ...
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 FreeTop 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
Top GitHub Comments
Fixed in latest
There is no test for auto update because it depends on an external data source that doesn’t always change making it impossible to create a test that always works when you run it.