ServiceStack / Issues

Issue Tracker for the commercial versions of ServiceStack
11 stars 8 forks source link

Nuxt app not starting in Safari (Invalid regular expression: invalid group specifier name) #773

Closed stefandevo closed 2 years ago

stefandevo commented 2 years ago

I am not sure since what version of @servicestack/client but at since 1.0.31 and later a nuxt application using JsonServiceClient is blocked upon startup on Safari -> SyntaxError: Invalid regular expression: invalid group specifier name

Simple project setup:

Then use the dev npm script on Safari.

The browser opens, shows the spinning wheel, but hangs. The console shows:

image

Can be found here: https://github.com/stefandevo/ssclient_issue

Safari Mac Version 15.2 (17612.3.6.1.6)

Layoric commented 2 years ago

Confirmed issue related to use of lookbehind in the following commit.

Safari doesn't yet support this so an alternative will need to be used.

Layoric commented 2 years ago

The look behind regex has been replaced in this commit.

This change is available from v1.1.19 that’s now available on npm.

Thanks for reporting @stefandevo !