Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

MilkdownError: Timer "SchemaReady" not found, do you forget to record it? #96

Open
emorling opened this issue Jan 18, 2024 · 4 comments

Comments

@emorling
Copy link

I get this error when using the plugin-menu.

Any ideas?

import { Editor, defaultValueCtx, rootCtx } from "@milkdown/core";
import { commonmark } from "@milkdown/preset-commonmark";
import { menu, menuDefaultConfig } from '@milkdown-lab/plugin-menu'

// Define the initializeEditor function
export function initializeEditor(markdownContent) {
  console.log('Initializing editor...');
  
  Editor.make()
    .config(menuDefaultConfig)
    .config((ctx) => {
      ctx.set(rootCtx, '#content');
      ctx.set(defaultValueCtx, markdownContent);
    })
    .use(commonmark)
    .use(menu)
    .create();
}
@enpitsuLin
Copy link
Owner

this lib hasn't kept up with the version of milkdown, it should be caused by a mismatch in the version

maybe it will be fixed in this weekend

@emorling
Copy link
Author

@enpitsuLin that would truly be appreciated 🙏🏽

@emorling
Copy link
Author

Any news on this? 🙏🏽

@enpitsuLin
Copy link
Owner

sry man, I was so addicted to playing video game last weekend that forgot this issue

now that 1.2.2 has been released it should fix this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants