calibreapp/react-live-chat-loader

[Bug] Uncaught SyntaxError: Unexpected token '.' in Chrome < 80

valentinfily opened this issue · 4 comments

Describe the bug

  • When loading a page using react-live-chat-loader with Chrome < 80 we encounter exception Uncaught SyntaxError: Unexpected token '.'
  • I am using 2.8.2.

How To Reproduce

This Chrome 79 emulated browser will help with reproduction : https://www.browserling.com/browse/win10/chrome79/https://react-live-chat-loader.vercel.app/helpscout

Screenshots

Error in console :
image
image

Exception caught in Sentry in my own app :
image

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Thanks for logging @valentinfily

While we don't have a documented browser support statement for this project, Chrome 79 is ~4 years old and safe navigation operator is part of ES2020. We're unlikely to change the library for this.

Assuming you're using some form of bundler, you may need to update the build target.

Having said that, we're going to tag a new release of RLCL which will include #341… which will likely address the issue that you've observed @valentinfily. Hang tight, release should be in the next few days.

@benschwarz any update on this potential release ? 🙏

Hi @valentinfily happy to announce that the update Ben mentioned above (#341) has been included in our latest release (2.91) and confirming via the Browserling link above that the issue you reported has been resolved.