包裹未捆绑正确

时间:2021-04-28 13:21:40

标签: three.js controls parcel

我正在尝试了解有关控件的更多信息,因此我下载了代码以进行测试和学习。 (用于上下文)。我有一个打包程序问题,导致抛出此错误。有没有人知道我将如何解决它?

代码: 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

屏幕截图 response in dev tools

preview (nothing)

0 个答案:

没有答案
相关问题