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
Im trying to use the OBJModel from the lib but i keep getting following error:
./node_modules/react-3d-viewer/dist/scripts/react-3d-viewer.js
Cannot find file: 'index.js' does not match the corresponding name on disk: './node_modules/React/react'.
Setup:
importReact,{Component}from'react'import{OBJModel}from'react-3d-viewer'importTEST_OBJ_MODELfrom'static/__TEST_IMAGES__/test_3d_model.obj'class3DViewerextendsComponent{render(){// const { t } = this.propsreturn(<div><OBJModelwidth="400"height="400"position={{x:0,y:-100,z:0}}src={TEST_OBJ_MODEL}texPath=""/></div>);}}
Not sure what im doing wrong here, im just following the example on the website :)
But i will give you some ❤️ for making such lib :D
The text was updated successfully, but these errors were encountered:
Hello,
Im trying to use the OBJModel from the lib but i keep getting following error:
Setup:
Not sure what im doing wrong here, im just following the example on the website :)
But i will give you some ❤️ for making such lib :D
The text was updated successfully, but these errors were encountered: