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.

2.2.0 gives "regexps is not defined" error

See original GitHub issue

Issue Description

once 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:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3rd-Edencommented, Jul 12, 2017

Fixed in latest

3rd-Edencommented, Jul 11, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

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 Post

No results found

github_iconTop Related Hashnode Post

No results found