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
three
@react-three/fiber
@react-three/drei
node
bun
Recieving url.lastIndexOf is not a function on initialization
url.lastIndexOf is not a function
/* Auto-generated by: https://github.com/pmndrs/gltfjsx */ import * as THREE from "three"; import React from "react"; import { useGLTF } from "@react-three/drei/native"; import { GLTF } from "three-stdlib"; import modelPath from "../assets/model.glb"; type GLTFResult = GLTF & { nodes: { Torus002: THREE.Mesh; }; materials: { Material: THREE.MeshStandardMaterial; }; }; const Model = (props: JSX.IntrinsicElements["group"]) => { const { nodes, materials } = useGLTF(modelPath) as GLTFResult; return ( <group {...props} dispose={null} scale={2}> <mesh castShadow receiveShadow geometry={nodes.Torus002.geometry} material={materials.Material} /> </group> ); }; useGLTF.preload(modelPath); export default Model;
import Model from "@/components/Model"; import { View } from "@/components/Themed"; import { Canvas } from "@react-three/fiber/native"; import { Suspense } from "react"; const Home = () => { return ( <View style={{ flex: 1 }}> <Canvas> <Suspense fallback={null}> <Model /> </Suspense> </Canvas> </View> ); }; export default Home;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
three
version: ^0.164.1@react-three/fiber
version: ^8.16.2@react-three/drei
version: 9.0.1node
version: 19.4.0bun
version: 1.0.22Problem description:
Recieving
url.lastIndexOf is not a function
on initializationRelevant code:
The text was updated successfully, but these errors were encountered: