We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error for sphere's ref: https://github.com/brianzinn/create-react-app-typescript-babylonjs/blob/master/src/App.tsx#L69
The text was updated successfully, but these errors were encountered:
update: React 18 (#10)
90d22b9
hi @jayypluss - it's a bit stricter in react 18. you need:
let sphereRef = useRef<Nullable<Mesh>>(null);
additionally on newer @babylonjs/core there is a side-effect you need to import if you are keeping the shadowgenerator:
import "@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent";
Sorry, something went wrong.
No branches or pull requests
Type error for sphere's ref:
https://github.com/brianzinn/create-react-app-typescript-babylonjs/blob/master/src/App.tsx#L69
The text was updated successfully, but these errors were encountered: