ServiceStack/Issues

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

stefandevo opened this issue · 2 comments

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:

  methods: {
    onClick: function() {
      let json = new JsonServiceClient();
    }
  }

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)

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.

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 !