"Invalid regular expression" in esdoc/node_modules/core-js/modules/es6.regexp.js:22:76
See original GitHub issueI 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:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top 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 >
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
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?
👍