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

SyntaxError: Invalid regular expression: /^.*?\((?<label>.*?)[,)]/: Invalid group #73

Open
fsultani opened this issue Oct 31, 2020 · 3 comments

Comments

@fsultani
Copy link

When deploying an app via Heroku, there's an error: SyntaxError: Invalid regular expression: /^.*?\((?<label>.*?)[,)]/: Invalid group. The stack trace seems to point back to imagemin-pngquant, which uses ow, which is where this regex is being used.

ow is currently on v.0.19.0, whereas imagemin-pngquant is still using v.0.17.0 (https://github.com/imagemin/imagemin-pngquant/blob/master/package.json#L30). Can it be upgraded to v.0.19.0 to see if it fixes the error?

@DanielBielczyk
Copy link

@fsultani Just ran into the same issue. In my case, the problem was old Node (v 8.x), which didn't support named groups in regexps - they are supported since node 10.x. I updated and it's ok now.

@Hancoson
Copy link

I had the same problem. node v10.x. How to solve?

@adammoisa
Copy link

Solved by switching to node 12.16.1

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

No branches or pull requests

4 participants