Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
Why monao editor does a request on /v/vs/language/typescript/tsWorker.js while it must be /vs/language/

I want to add monaco editor on my website but when i try this code :

<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.0-dev.20211222/min/vs/loader.js" integrity="sha512-9fANEu2oim+NnACLlgBgJAgG3FMQNOIifCcsxzqDAVbHSTtiFECb+pQf7G2BYwxwYkfPrNtULNCvy4DHyFzPoQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
    require.config({ paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.0-dev.20211222/min/vs/' } });
    require(['vs/editor/editor.main'], function () {
        let editor = monaco.editor.create(document.getElementById('container'), {
            value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
            language: 'javascript',
            theme: 'vs-dark'
        });
    });
</script>

I have an error in the developer console: Loading the script at the address" https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.0-dev.20211222/min/v/ vs / language / typescript / tsWorker.js "with importScripts () was blocked due to a forbidden MIME type (" text / html ") .

I checked the url in cdnjs.com and found this error: min / v / vs / there is no that but / min / vs

I think this is not an error provided by the contributor of monaco editor but I do not understand what my error is

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda