问题描述
我正在尝试了解有关控件的更多信息,因此我下载了代码以进行测试和学习。 (用于上下文)。我有一个打包程序问题,导致抛出此错误。有没有人知道我将如何解决它?
代码: https://github.com/simondevyoutube/ThreeJS_Tutorial_CharacterController/blob/main/main.js
包裹设置:
"parcel": "^2.0.0-beta.2","parcel-plugin-static-files-copy": "^2.6.0"
错误:
GLTFLoader.js:153 SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at GLTFLoader.parse (GLTFLoader.js:283)
at Object.onLoad (GLTFLoader.js:173)
at XMLHttpRequest.<anonymous> (three.module.js:34701)
_onError @ GLTFLoader.js:153
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)