// FIX: The triple-slash directive was causing a "Cannot find type definition file" error. // It has been replaced with a modern type-only import to correctly load @react-three/fiber's custom JSX type definitions. import type {} from '@react-three/fiber'; import React from 'react'; import ReactDOM from 'react-dom/client'; import { App } from './App'; const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error("Could not find root element to mount to"); } const root = ReactDOM.createRoot(rootElement); root.render( );