Uncaught (in promise) Error: ENOENT: no such file or directory, open 'https:/cdn.jsdelivr.net/npm/monaco-editor@0.21.2/min/vs/editor/editor.main.js'
See original GitHub issueDescribe the bug
I tried to use monaco-react
in my react-electron project , then I encountered this :
Uncaught (in promise) Error: ENOENT: no such file or directory, open ‘https:/cdn.jsdelivr.net/npm/monaco-editor@0.21.2/min/vs/editor/editor.main.js’
To Reproduce
Steps to reproduce the behavior:
clone https://github.com/maifeeulasad/open-code-electron.git checkout https://github.com/maifeeulasad/open-code-electron/tree/8d5bdd8c017b2cb5fe06298b56f171f9090db083 yarn yarn start
Or, please add a minimal code snippet to reproduce the issue, for example in codesandbox.
Expected behavior Well I guess a simple code editor, right ?
Screenshots
Desktop (please complete the following information):
- OS: Ubuntu 18.04
- Browser: Chromium(electron-embedded)
- Version —
Additional context monaco-react in react-electron boilerplate.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
Hello @maifeeulasad
It seems like your environment can’t download files from
CDN
. By defaultmonaco
sources are being downloaded fromCDN
(you can change that behavior) Please, read the section aboutelectron
No, thank you, I am not free