-
I ran the example https://github.com/vercel/next.js/tree/canary/examples/with-monaco-editor and it worked. But in the example, I can't use module.scss to render other components.
What should I do? |
Beta Was this translation helpful? Give feedback.
Answered by
benebsiny
Aug 16, 2020
Replies: 2 comments 1 reply
-
make sure you have sass installed
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok I found a solution. Use @monaco-editor/react instead of react-monaco-editor, I can use it directly without any other settings. It works fine very much with next.js |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benebsiny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I found a solution. Use @monaco-editor/react instead of react-monaco-editor, I can use it directly without any other settings. It works fine very much with next.js