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.

"Invalid regular expression" in esdoc/node_modules/core-js/modules/es6.regexp.js:22:76

See original GitHub issue

I don’t know if this is a problem with esdoc or esdoc’s usage of core-js or core-js itself. Ran into this problem while trying to process some ES6, which is babel compatible.

> esdoc -c esdoc.json

badge.svg
identifiers.html
index.html
class/src/CodeMirror/input-model.js~CodeMirrorInputModel.html
class/src/cursor-model.js~CoordinateModel.html
class/src/cursor-model.js~CursorModel.html
class/src/input-model.js~InputModel.html
/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/ClassDocBuilder.js:79
            throw _iteratorError;
            ^

SyntaxError: Invalid regular expression: /[~]\object)=>void$/: Unmatched ')'
    at RegExp (native)
    at new RegExp (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/node_modules/core-js/modules/es6.regexp.js:22:76)
    at ClassDocBuilder._findByName (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:119:20)
    at ClassDocBuilder._buildDocLinkHTML (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:967:22)
    at ClassDocBuilder._buildTypeDocLinkHTML (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:943:21)
    at ClassDocBuilder._buildSignatureHTML (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:1076:33)
    at /home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:469:38
    at IceCap.loop (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/node_modules/ice-cap/out/src/IceCap.js:319:15)
    at ClassDocBuilder._buildSummaryDoc (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:466:11)
    at ClassDocBuilder._buildSummaryHTML (/home/jon/jupyter/jupyter-js-input-area/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:425:29)

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
rhys-vdwcommented, Nov 27, 2015

Hey @h13i32maru, I’m having this issue as well. I think the real problem here is that the error gives no feedback about which file contains the syntax error. Is it possible for this to be wrapped with an error that lists file/line number or some more information about where the problem is?

0reactions
h13i32marucommented, Sep 26, 2015

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: invalid regular expression flag "x" - MDN Web Docs
The JavaScript exception "invalid regular expression flag" occurs when the flags in a regular expression contain any flag that is not one ...
Read more >
Getting "error: invalid regular expression" - Stack Overflow
This means that the javascript string "\\" will produce the following content : \ . But that single \ is a escape character...
Read more >
Invalid regular expression errors while trying to parse/inject ...
Looking at the stack trace it appears nyc is injecting it's own code into instrumented files before trying to regex these out, and...
Read more >
"Invalid Regular Expression field" for event rule - ServiceNow
I am trying this regex: (?<= ).*. But getting an "Invalid Regular Expression field" error when I save the Event Rule.
Read more >
Regular expressions in Looker Studio - Google Support
A regular expression ("regex") is a specific sequence of characters that broadly or narrowly match patterns in your data. You can use regular...
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