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

安装gg-editor使用流程图报错 #63

Closed
nsuedu opened this issue Sep 19, 2018 · 4 comments
Closed

安装gg-editor使用流程图报错 #63

nsuedu opened this issue Sep 19, 2018 · 4 comments

Comments

@nsuedu
Copy link

nsuedu commented Sep 19, 2018

报错内容:index.js:2178 Warning: Failed child context type: Invalid child context pageId of type string supplied to e, expected number.

@topwood
Copy link

topwood commented Sep 19, 2018

I have the same warning info, and the page is blank.

@nsuedu
Copy link
Author

nsuedu commented Sep 19, 2018

如果只像下面这样使用组件 Flow data 为空时是一片白的,

import GGEditor, { Flow } from 'gg-editor';

const data = {
  nodes: [],
  edges: [],
};

<GGEditor>
  <Flow data={data} />
</GGEditor>
  1. Mind 是有默认数据的:),你可以拿 Mind 试下

@nsuedu
Copy link
Author

nsuedu commented Sep 19, 2018

I have the same warning info, and the page is blank.
@@可以参考我上面的回复 @topwood

@gaoli
Copy link
Collaborator

gaoli commented Sep 19, 2018

@nsuedu pageId 类型报错是个警告,不会影响使用,下个版本修复:)

gaoli added a commit that referenced this issue Sep 20, 2018
@gaoli gaoli closed this as completed in e2a1c06 Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants