Schema is missing its top node type ('doc')

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        
});

am i missing something?

That precise code works for me, so I don’t know what’s going wrong. Maybe something with your module loading or bundling setup.

yup i guess you are right, i was using vuejs vite to create my app. So I retried it using Vue 2 CLI and its working. Thanks!