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 while using useProseMirror hook #24

Open
impauloalves opened this issue Jul 28, 2023 · 0 comments
Open

Error while using useProseMirror hook #24

impauloalves opened this issue Jul 28, 2023 · 0 comments

Comments

@impauloalves
Copy link

Hello,
I'm trying to setup this dependency on a fresh create-react-app app.

`import 'prosemirror-view/style/prosemirror.css';

import React from 'react';
import {schema} from 'prosemirror-schema-basic';
import {useProseMirror, ProseMirror} from 'use-prosemirror';

export default function MyEditor() {
const [state, setState] = useProseMirror({schema});
return

;
};`

I'm getting the following error on the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'create')

Any idea?
Thanks.

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

1 participant