0

In my react application, I have an import module statement like this.

import { S3 } from "@aws-sdk/client-s3"

However, in Firefox I cannot load the application as it returns the below error.

SyntaxError: invalid regexp group

This is not an issue in other browsers.

I found out that the above import statement returns this error. I believe this due to "@" sign. Any idea to resolve this?

Dumi
  • 1,414
  • 4
  • 21
  • 41
  • Does this answer your question? [Firefox gives SyntaxError: invalid regexp group](https://stackoverflow.com/questions/55774080/firefox-gives-syntaxerror-invalid-regexp-group) – Alireza Sep 22 '21 at 19:08
  • No. I don't have any regex in my application – Dumi Sep 22 '21 at 19:12
  • Firefox should not throw this error unless some invalid RegExp pattern is defined in that import. Is your FF up-to-date? – Wiktor Stribiżew Sep 22 '21 at 21:16

0 Answers0