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

216
Vistas
Uncaught TypeError: Class extends value [object Object] is not a constructor or null" on SNOWPACK build JS of TDA-API-CLIENT
Uncaught TypeError: Class extends value [object Object] is not a constructor or null
    at tda-api-client.v2.1.3.js:3245:38
    at createCommonjsModule (tda-api-client.v2.1.3.js:20:5)
    at tda-api-client.v2.1.3.js:3186:21 

I will be going down the error stack. # 1-3

//1.   class StreamDataTDA extends events_1.default { //<--- error occurs at default
   constructor(streamConfig) {(...)}

//2. function createCommonjsModule(fn, basedir, module) {
return module = {
    path: basedir,
    exports: {},
    require: function (path, base) {
        return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
    }
    }, fn(module, module.exports), module.exports; //<--- error on this line
}

//3. var streamDataTDA = createCommonjsModule(function (module, exports) {

Tda-api-client is a npm module that I installed. However, when it came to snowpack it's giving me this error. Is there a config that avoids this "misbuild" by snowpack?

Thank you for your assistance

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