You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error is located at:
in MyScene (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by withDevTools(App))
in withDevTools(App)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in main(RootComponent)
Relevant code:
import React from "react";
import { GLView } from "expo-gl";
import * as THREE from "three";
import { Asset } from "expo-asset";
import { loadAsync } from "expo-three";
import { useGLTF } from "@react-three/drei/native";
@kafeinberkcolakk
you can try importing useGTF as import { useGLTF } from "@react-three/drei"
instead of import { useGLTF } from "@react-three/drei/native"
"dependencies": {
"expo": "~52.0.37",
"expo-status-bar": "~2.0.1",
"react": "18.3.1",
"react-native": "0.76.7",
"@react-three/drei": "^10.0.4",
"@react-three/fiber": "^9.0.4",
"expo-asset-utils": "^3.0.0",
"expo-gl": "~15.0.4",
"expo-three": "^8.0.0",
"three": "0.132.2",
"three-stdlib": "^2.35.14"
},
Problem description:
(NOBRIDGE) ERROR TypeError: Cannot read property 'S' of undefined [Component Stack]
(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'useGLTF' of undefined
This error is located at:
in MyScene (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by withDevTools(App))
in withDevTools(App)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in main(RootComponent)
Relevant code:
import React from "react";
import { GLView } from "expo-gl";
import * as THREE from "three";
import { Asset } from "expo-asset";
import { loadAsync } from "expo-three";
import { useGLTF } from "@react-three/drei/native";
const MyScene = () => {
const test = useGLTF("./assets/classroom.glb");
console.log(test)
};
export default MyScene;
classroom: https://github.com/kafeinberkcolakk/t/blob/main/school_classroom.glb
The text was updated successfully, but these errors were encountered: