Closed lghsigma597 closed 8 months ago
@lghsigma597 Upgrade v3.25.5
import * as commands from "@uiw/react-md-editor/commands"
@jaywcjlove Thank you for the quick fix! It works well, except there is a typescript error in VSCode. Do you have any idea for this?
@lghsigma597 Upgrade v3.25.6
@jaywcjlove Great! It worked for me! Thank you 👍🏼
Hi! Thank you for the great package 👍🏼
I aimed to customize the
extraCommands
of the toolbar. My initial approach was utilizing theimport { commands } from "@uiw/react-md-editor";
for this customization. However, during this phase, I encountered an unexpected challenge.Below are the comments and issues I referenced: https://github.com/uiwjs/react-md-editor/issues/52#issuecomment-848969341 https://github.com/uiwjs/react-md-editor/issues/224#issuecomment-925673338 https://github.com/uiwjs/react-md-editor/issues/446
From the above, I found the solution
import * as commands from "@uiw/react-md-editor/lib/commands";
but failed in latest version v3.25.4. It seems like v3.24.1 works well. To illustrate the issue more clearly, I have forked and only adjusted the package version in your sandbox example (link)Thank you!
Error
Reproducible code
packages
Next.js configuration
No extra configurations for
next.config.js
.index.js