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

RangeError: Schema is missing its top node type ('doc')bug: #421

Open
praveenvns opened this issue Jul 6, 2024 · 2 comments
Open

RangeError: Schema is missing its top node type ('doc')bug: #421

praveenvns opened this issue Jul 6, 2024 · 2 comments

Comments

@praveenvns
Copy link

Provide environment information

RangeError: Schema is missing its top node type ('doc')bug:

Describe the bug

Screenshot 2024-07-06 at 11 21 04 AM

My code
Screenshot 2024-07-06 at 11 22 12 AM

Editor not working at all

Link to reproduction

RangeError: Schema is missing its top node type ('doc')bug:

To reproduce

RangeError: Schema is missing its top node type ('doc')bug:

Additional information

RangeError: Schema is missing its top node type ('doc')bug:

@henryobiaraije
Copy link

I am getting this error two. Just tried to use this in a Nextjs App but this error shows up. The worst is that the error doesn't make any sense and does not give a hint of what is wrong.
image

@phyohtetarkar
Copy link
Contributor

You need to setup extensions and apply in editor.

import { defaultExtensions } from "./extensions";

const extensions = [...defaultExtensions];

<EditorContent
  extensions={extensions}
  ...
/>;

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