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

214
Views
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
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!