From 0253635a718124e4d69e4a501a2150537b3d6d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heiner=20P=C3=B6pping?= Date: Wed, 27 Nov 2024 18:05:35 +0100 Subject: [PATCH] Fix typescript error --- templates/api-v5/page-ts-redux/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/api-v5/page-ts-redux/src/index.tsx b/templates/api-v5/page-ts-redux/src/index.tsx index 23b8749..aa6e679 100644 --- a/templates/api-v5/page-ts-redux/src/index.tsx +++ b/templates/api-v5/page-ts-redux/src/index.tsx @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client'; import AppWrapper from './components/AppWrapper'; try { - const root = createRoot(document.querySelector('#root')); + const root = createRoot(document.querySelector('#root') as Element); root.render(); } catch (e) { console.error('Encountered error at `ReactDOM.render`: ', e);