Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compatibility Issue] SyntaxError: Invalid regular expression #20

Closed
ulivz opened this issue Nov 11, 2019 · 3 comments
Closed

[Compatibility Issue] SyntaxError: Invalid regular expression #20

ulivz opened this issue Nov 11, 2019 · 3 comments

Comments

@ulivz
Copy link

ulivz commented Nov 11, 2019

SyntaxError: Invalid regular expression: /@(?:import|require)\s+(?:\([a-z,\s]+\)\s*)?['"]?(?<pathToResource>[^'"\s;]+)['"]?;?/: Invalid group

Which is introduced by c5fa232.

(?<pathToResource> (named capture groups) is supported from Node.js 10.3, see: https://node.green/

@freyhill
Copy link

I have the same problem after the version upgrade
So I locked in version 1.2.1

@yenshih
Copy link
Owner

yenshih commented Nov 11, 2019

Definitely a bug. I'll fix it.

@yenshih
Copy link
Owner

yenshih commented Nov 11, 2019

Done. I've just released v1.3.2 (another bug was found)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants