Replies: 2 comments
-
@aszswaz Did you find the answer? Have the same question (: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, did you get it working? can't find any solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Description
I am planning to use Monaco editor as a code editor for my electron project.
But I encountered a small problem, the project requires users to enter nodejs code in the editor.
But I found that the Monaco editor does not support CommonJS code assist.
Here is my Webpack config:
Here is my code:
Here is the final effect:
How can I configure the Monaco editor so that it can assist nodejs code correctly?
If there is no such way, how can I turn off this CommonJS module to ES module prompt? This prompt is wrong and will mislead the user.
node version: v16.13.2
webpack version: ^5.69.0
webpack-cli version: ^4.9.2
electron: ^17.0.1
monaco-editor: ^0.32.1
Beta Was this translation helpful? Give feedback.
All reactions