i am playing around with the library and currently encountering this issue Schema is missing its top node type ('doc') while extending the schema with the following code.
import { schema } from "prosemirror-schema-basic";
import { Schema } from "prosemirror-model";
const extendedSchema = new Schema({
nodes: schema.spec.nodes,
marks: schema.spec.marks
});