milkdown-lab icon indicating copy to clipboard operation
milkdown-lab copied to clipboard

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

Open emorling opened this issue 1 year ago • 4 comments

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

emorling avatar Jan 18 '24 23:01 emorling

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

enpitsuLin avatar Jan 19 '24 15:01 enpitsuLin

@enpitsuLin that would truly be appreciated 🙏🏽

emorling avatar Jan 19 '24 20:01 emorling

Any news on this? 🙏🏽

emorling avatar Jan 25 '24 00:01 emorling

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

enpitsuLin avatar Jan 25 '24 06:01 enpitsuLin