Skip to content

Commit dbc1d86

Browse files
fix: tsconfig jsx to react
1 parent 05caff1 commit dbc1d86

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ecctrl",
3-
"version": "1.0.73",
3+
"version": "1.0.74",
44
"author": "Erdong Chen",
55
"license": "MIT",
66
"description": "A floating rigibody character controller for R3F",

src/Ecctrl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import type {
2020
RayColliderToi,
2121
Vector,
2222
} from "@dimforge/rapier3d-compat";
23+
import React from "react";
2324

2425
export { EcctrlAnimation } from "./EcctrlAnimation";
2526
export { useFollowCam } from "./hooks/useFollowCam";

src/EcctrlAnimation.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useGLTF, useAnimations } from "@react-three/drei";
22
import { useEffect, useRef, Suspense } from "react";
33
import * as THREE from "three";
44
import { useGame, type AnimationSet } from "./stores/useGame";
5+
import React from "react";
56

67
export function EcctrlAnimation(props: EcctrlAnimationProps) {
78
// Change the character src to yours

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"emitDeclarationOnly": true,
1212
"moduleResolution": "node",
1313
"strictNullChecks": false,
14-
"jsx": "react-jsx",
14+
"jsx": "react",
1515
"declaration": true,
1616
"lib": ["es2022", "dom"]
1717
},

0 commit comments

Comments
 (0)