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

error block.getChildKeys is not a function #34

Open
oudmane opened this issue Apr 21, 2021 · 1 comment
Open

error block.getChildKeys is not a function #34

oudmane opened this issue Apr 21, 2021 · 1 comment

Comments

@oudmane
Copy link

oudmane commented Apr 21, 2021

I tried to use this package in a project but I get this error: block.getChildKeys is not a function

I cloned this repository, and run storybook, it works, but When I used in a react project it gave Me this error. how can I use it ?

my code

import Editor from "react-tapable-editor";

export default function App() {
  return (
    <div className="App">
      <Editor />
    </div>
  );
}

you can reproduce the error here
https://codesandbox.io/s/nifty-aryabhata-m19vy?file=/src/App.js

@pedrospecter
Copy link

pedrospecter commented Jul 11, 2021

I guess you are using create-react-app.
Add this script under index.html

<script>
      window.__DRAFT_GKX = {
        'draft_tree_data_support': true,
      }
    </script>

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

2 participants