-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
[v3.25.4] "Module not found" error when import ./lib/commands
in Next.js v13.4.3
#592
Comments
jaywcjlove
added a commit
that referenced
this issue
Nov 12, 2023
@lghsigma597 Upgrade 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? |
jaywcjlove
added a commit
that referenced
this issue
Nov 13, 2023
@lghsigma597 Upgrade |
@jaywcjlove Great! It worked for me! Thank you 👍🏼 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
#52 (comment)
#224 (comment)
#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
The text was updated successfully, but these errors were encountered: