I have installed monaco-editor using
npm install monaco-editor
now I want to require in my js file
so I have tried to require using
var monaco = require('monaco-editor');
but it is giving me module not found error.
Is there wrong I am doing?
They just released ESM distribution which is compatible with webpack etc. Check out the docs here.
Also there are many examples for using monaco with webpack, parcel an so on. See all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With