Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
How to remove default DOM/Browser related autocompletions for Monaco Editor using Javascript?

I'm using Monaco for JavaScript object literal creation, where I need just the basic type completion, plus a custom one (using monaco.languages.registerCompletionItemProvider('javascript', ...)).

Default JavaScript autocompletion

When I use the recommended solution in How to remove autocompletions for Monaco Editor using Javascript? :

monaco.languages.typescript.javascriptDefaults.setCompilerOptions(
  { noLib: true, allowNonTsExtensions: false}
)

...the result is much better:

Only custom autocompletion

... but now the developer console shows a continuous flow of uncaught errors when I interact with the Monaco Editor:

tsMode.js:8 
        
       Uncaught (in promise) Error: Could not find source file: 'inmemory://model/2'.
    at ln (tsWorker.js:250)
    at Object.sn [as getSyntacticDiagnostics] (tsWorker.js:250)
    at pm.getSyntacticDiagnostics (tsWorker.js:35306)
    at w.fmr (workerMain.js:17)
    at s._handleMessage (workerMain.js:13)
    at Object.handleMessage (workerMain.js:13)
    at m._handleRequestMessage (workerMain.js:13)
    at m._handleMessage (workerMain.js:13)
    at m.handleMessage (workerMain.js:13)
    at s.onmessage (workerMain.js:13)

How do I get rid of these errors?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!