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

246
Vistas
JavaScript, how to debug imported library when not possible to recover console.log error?

In Package that Im using in Ionic Capacitor project, I have changed SoundFont player, It works great in that package, loads sf2 file and executes play action as well, when Im running that package on local host by npm start.

How ever, when I run my main project, there is no sound, I can see in console log that soundFont was successfully loaded by package Im using in my project, also excately the same SoundFont Im referencing from my main project and loading it successfully into it as well, and playing it too, Im also seeing all the console logs logged in package up to a point play action is used, but console logs immediately after that I can't see in my console log, so I presume, there is some error thrown or something, that stops executing code at that stage. but I don't know how to catch it. Also these errors probably aren't critical, as everything else works normally, including cursor that moves with every play call in package code. Otherwise, if soundFont isn't successfully loaded, both my main and package local servers crash on calling the play function.

https://github.com/enjikaka/sf2-player. --sf2 player im using in that package, package im using isn't public, so I can't share it.

console.log("key");
console.log(key);
console.log("sf2.noteOn(key)");
console.log(sf2.noteOn(key));

Upper 4 console logs I see in my console, bottom two console logs I can't see (though I see all of them when running package in local server, just that then everything works as expected, no errors thrown).

sf2.noteOn(sf2.noteOn(key));
setTimeout(() => sf2.noteOff(key), 500);
console.log("sf2.noteOn(key 22222)");
console.log(sf2.noteOn(key));

Is there a way to see what's happening with last four lines of code in my main project console log?

Also my main project is written in react, package is written in TypeScript

about 4 years ago · Juan Pablo Isaza
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