From 6af10d6deae372bac36e33e0ee93820df444b939 Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Thu, 2 Feb 2023 14:03:48 +0100 Subject: [PATCH] Fix https://github.com/facebook/regenerator/issues/378 --- packages/rating-tracker-frontend/src/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/rating-tracker-frontend/src/App.tsx b/packages/rating-tracker-frontend/src/App.tsx index 3211b6eb7..df7ab559d 100644 --- a/packages/rating-tracker-frontend/src/App.tsx +++ b/packages/rating-tracker-frontend/src/App.tsx @@ -7,6 +7,12 @@ import ParticleBackground from "./components/ParticleBackground"; import { NotificationProvider } from "./contexts/NotificationContext"; import NotificationSnackbar from "./components/NotificationSnackbar"; +/** + * The globalThis.regeneratorRuntime = undefined addresses a potentially unsafe-eval problem + * Source: https://github.com/facebook/regenerator/issues/378#issuecomment-802628326 + */ +globalThis.regeneratorRuntime = undefined; + /** * The Rating Tracker Application. *