1 Star 0 Fork 0

fcguoc / r3f-portfolio-animations

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

r3f-vite-starter

A boilerplate to build R3F projects

yarn
yarn dev

image

控制台报错

Uncaught TypeError: Cannot read properties of undefined (reading 'length')

# 控制台报错 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at Object.update (chunk-ARVSLCLW.js?v=48cc622c:11525:46)
    at setProgram (chunk-ARVSLCLW.js?v=48cc622c:18802:22)
    at WebGLRenderer.renderBufferDirect (chunk-ARVSLCLW.js?v=48cc622c:18147:23)
    at renderObject (chunk-ARVSLCLW.js?v=48cc622c:18568:15)
    at renderObjects (chunk-ARVSLCLW.js?v=48cc622c:18550:11)
    at renderScene (chunk-ARVSLCLW.js?v=48cc622c:18474:9)
    at WebGLRenderer.render (chunk-ARVSLCLW.js?v=48cc622c:18376:9)
    at render$1 (chunk-RJDL3HZZ.js?v=48cc622c:17557:14)
    at loop (chunk-RJDL3HZZ.js?v=48cc622c:17575:19)

解决

# 卸载当前版本
npm uninstall -g gltfjsx
npm i -g gltfjsx@6.2.11
# 还是会报错,全局缺少依赖
# Cannot find package 'read-pkg-up' imported from D:\develop\nodejs\node_global\node_modules\gltfjsx\cli.js
npm i read-pkg-up

npx gltfjsx@6.2.11 .\public/models\646d9dcdc8a5f5bddbfac913.glb -o .\src/components/Avatar01.jsx -r .\public

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/tianlanggucheng/r3f-portfolio-animations.git
git@gitee.com:tianlanggucheng/r3f-portfolio-animations.git
tianlanggucheng
r3f-portfolio-animations
r3f-portfolio-animations
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891