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

264
Views
SpecReporter no es un error de constructor cuando se ejecuta el transportador usando angular-cli

Cuando intento ejecutar ng e2e o el comando de protractor directo, aparece este error:

 [14:39:00] I/update - chromedriver: chromedriver_2.28 up to date [14:39:04] I/launcher - Running 1 instances of WebDriver [14:39:04] I/direct - Using ChromeDriver directly... [14:39:44] E/launcher - Error: TypeError: SpecReporter is not a constructor at onPrepare (/home/younes/repo/cip_front/protractor.conf.js:30:34) at q_1.Promise (/home/younes/repo/cip_front/node_modules/protractor/lib/util.ts:48:39) at Function.promise (/home/younes/repo/cip_front/node_modules/q/q.js:682:9) at Object.runFilenameOrFn_ (/home/younes/repo/cip_front/node_modules/protractor/lib/util.ts:39:10) at plugins_.onPrepare.then (/home/younes/repo/cip_front/node_modules/protractor/lib/runner.ts:103:21) at _fulfilled (/home/younes/repo/cip_front/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/home/younes/repo/cip_front/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/home/younes/repo/cip_front/node_modules/q/q.js:796:13) at /home/younes/repo/cip_front/node_modules/q/q.js:556:49 at runSingle (/home/younes/repo/cip_front/node_modules/q/q.js:137:13) at flush (/home/younes/repo/cip_front/node_modules/q/q.js:125:13) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) [14:39:44] E/launcher - Process exited with error code 100
about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

esto se debe a un cambio radical en Jasmine. Cambie el archivo de configuración de su transportador para que tenga:

 var SpecReporter = require('jasmine-spec-reporter').SpecReporter;

en vez de:

 var SpecReporter = require('jasmine-spec-reporter');
about 4 years ago · Santiago Trujillo Report

0

Tienes que hacer lo siguiente:

 const SpecReporter = require('jasmine-spec-reporter').SpecReporter; jasmine.getEnv().addReporter(new SpecReporter());
about 4 years ago · Santiago Trujillo Report
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!