Now let me update the title and build the 3D simulation. First the title:
Now let me create the 3D building model component. The National Diet Building has a distinctive symmetrical design with a central pyramid-topped tower and two wings.
These JSX intrinsic element errors are typical for R3F with TypeScript. They're resolved by the type augmentation that comes with @react-three/fiber — the build (Vite) will resolve them. But to be safe, let me check tsconfig and add a type reference. These errors usually appear because the R3F types need to be imported. Let me build to see if it actually fails.
The issue is "types": ["node"] restricts the global types, so R3F's JSX augmentation isn't picked up. Since I can't edit tsconfig, I'll add an explicit import of the R3F types at the top of files using the elements. Adding import "@react-three/fiber" should trigger the module augmentation. Let me verify by checking the drei/fiber version — newer R3F (v9) requires explicit extend or uses ThreeElements. Let me check the installed version.
R3F v9 with React 19. In v9, the JSX namespace augmentation works but requires the "types" array to not exclude it, OR requires a global.d.ts declaring the React Three Fiber types. Since tsconfig has "types": ["node"], global augmentations from other packages ARE still picked up (that array only restricts @types/* global packages, not module augmentations from imported modules).
The real fix for R3F v9: JSX elements come from the ThreeElements interface merged into React's JSX namespace via @react-three/fiber. This augmentation only applies when the module is in the compilation. Let me add a src/three.d.ts file that pulls in the types globally.
Now let me create the main App with the Canvas, controls, lighting, sky, and an informational UI overlay.
Now let me build to confirm everything compiles.
ビルドが成功しました。国会議事堂の3Dシミュレーションが完成しました。
完成した内容
日本の国会議事堂の3Dインタラクティブシミュレーションを作成しました。React Three Fiber (Three.js) を使い、実際の建物の特徴を再現しています。