【发布时间】:2019-10-09 08:44:57
【问题描述】:
我正在使用 nuxt.js 应用程序中的 typescript 使用 three.js GLTFLoader() 加载模型:
this.mGLTFLoader = new (<any>THREE).GLTFLoader();
this.mGLTFLoader.load(pPath, (gltf) => this.onLoad(gltf), (xhr) => this.onProgress(xhr), (e) => this.onError(e));
但是当我加载 zimjs(一个 JavaScript 库)时,我遇到了一些冲突:
TypeError:无法在“URL”上执行“createObjectURL”:找不到与提供的签名匹配的函数。在 GLTFLoader.js:2000
【问题讨论】:
标签: javascript typescript three.js nuxt.js