Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当调用fromJSON方法时,出现报错:TypeError: Cannot read properties of null (reading 'fromJSON') #3946

Open
bear0123 opened this issue Sep 27, 2023 · 2 comments
Labels
resolution: needs more info 需要更多信息 Issues that require more information from their reporters

Comments

@bear0123
Copy link

问题描述

简单代码如下:
this.graph = new Graph({});
this.graph.fromJSON({cells:cells}); //这一行报错了

经常使用google浏览器就会报这个错误。(其他浏览器未测试)
将浏览器设置还原为原始默认设置就会好,但是过几天又会有这个错误。
或者直接使用无痕模式也不会报错。
我怀疑Graph是不是跟浏览器的某些设置或者数据有关

重现链接

重现步骤

预期行为

平台

  • 操作系统: [ Windows,]
  • 网页浏览器: [Google Chrome,]
  • X6 版本: [^1.34.5]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 27, 2023

👋 @bear0123

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

根据你的描述不能定位问题,能否提供一些额外的信息,比如浏览器版本、安装的插件等等。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: needs more info 需要更多信息 Issues that require more information from their reporters
Projects
None yet
Development

No branches or pull requests

2 participants