question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Describe 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 Screenshot from 2021-01-18 17-32-47

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:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
suren-atoyancommented, Jan 18, 2021

Hello @maifeeulasad

It seems like your environment can’t download files from CDN. By default monaco sources are being downloaded from CDN (you can change that behavior) Please, read the section about electron

0reactions
suren-atoyancommented, Jan 18, 2021

No, thank you, I am not free

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >
Error: ENOENT: no such file or directory, scandir ... - YouTube
nodejsError: ENOENT : no such file or directory, scandir '**/node_modules/node-sass/vendor' | Module build failed (from .
Read more >
How to Fix npm ERR Code ENOENT npm ERR syscall Open ...
... ENOENT npm ERR syscall Open Error or ENOENT No Such File or Directory ... Where All The Packages are Located & Then...
Read more >
Error: ENOENT: no such file or directory... when requesting URL.
Error : ENOENT: no such file or directory... when requesting URL. Well, I gave it a good go but I suspect there's some...
Read more >
Error: ENOENT: no such file or directory, open 'C:\Users\kudo ...
You dont on expo, hermes works but if I use RTK query with only simple fetch data then this error comes. Makes no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found