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

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 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

2 participants