• International中文
  • npm 安装后提示 文件查找失败:'@esotericsoftware/spine-core'

我想在网页上使用
用了npm install @esotericsoftware/spine-webgl
这个命令
执行在重启就报错了
我是在vue2.0里面使用的

Related Discussions
...

请发布完整的错误消息。
Please post the full error message.

7 дней спустя

TypeError: Cannot read properties of undefined (reading 'SpinePlayer')

_spinePlayer.default is not a constructor

恐怕错误消息并不能告诉我太多信息。 这不是与 Spine 相关的错误。 您正在尝试访问未定义或 null 的变量,该变量应该保存对 SpinePlayer 的引用。 该引用尚不存在。 这让我认为这可能是你的 Vue 生命周期的问题。 如果您发布代码或完整的复制示例,我可以提供更多帮助。

I'm afraid that error message doesn't tell me much. It's not a Spine related error. You are trying to access a variable that's undefined or null, which supposedly should hold a reference to a SpinePlayer. That reference doesn't exist yet. This leads me to think that it's likely an issue with your Vue life cycle. If you post code or a full reproduction sample, I can be of more help.