tweenjs导入错误:无法分配仅读取属性'导出'对象'#< object>'
我正在使用带有三j的nuxtj。
导入之间后,
import { TWEEN } from 'three/examples/jsm/libs/tween.module.min.js'
我会收到此错误:
无法分配仅读取对象'#object>'
的属性'导出''
是否有任何解决方法?
I'm using NuxtJS with ThreeJS.
After I import TWEEN
import { TWEEN } from 'three/examples/jsm/libs/tween.module.min.js'
I get this error:
Cannot assign to read only property 'exports' of object '#<Object>'
Is there any workaround for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
归根结底,我使用了独立的tweenjs软件包:)
https://github.com /theenjs/twien.js
软件包
安装了导入的tween的
At the end of the day, I used standalone tweenjs package and it worked :)
https://github.com/tweenjs/tween.js
Installed the package
Imported TWEEN