Skip to content
Discussion options

You must be logged in to vote

Hi @nickw1!

Why did you externalize the @uiw/react-md-editor package? After dropping the vite.config.mjs you have in the repo, this works for me. When you externalize the package, Vite will not find the CSS imported by the library, and the framework will not include its CSS when rendering the page with the editor component. You only need to consider externalizing a package used in server components, but packages used in client components should not be externalized. This should be added as a warning in the build of a @lazarv/react-server application.

According to the Next.js example, this library has, you need to import these CSS files:

import "@uiw/react-md-editor/markdown-editor.css";
im…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nickw1
Comment options

Answer selected by nickw1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants