karma-runner/grunt-karma

typeerror cannot read property 'prototype' of undefined

dkumaraguru opened this issue · 4 comments

build-with-tests:
     [echo] build and test
     [exec] Loading "grunt-karma.js" tasks...ERROR
     [exec] >> TypeError: Cannot read property 'prototype' of undefined
     [exec] 
     [exec] Running "bower-install:app" (bower-install) task
     [exec] 
     [exec] angular-i18n was not injected in your file.
     [exec] Please go take a look in "app/bower_components/angular-i18n" for the file you need, then manually include it in your file.
     [exec] 
     [exec] pdfjs-viewer was not injected in your file.
     [exec] Please go take a look in "app/bower_components/pdfjs-viewer" for the file you need, then manually include it in your file.
     [exec] 
     [exec] Running "bower-install:metadata" (bower-install) task
     [exec] 
     [exec] angular-i18n was not injected in your file.
     [exec] Please go take a look in "app/bower_components/angular-i18n" for the file you need, then manually include it in your file.
     [exec] 
     [exec] pdfjs-viewer was not injected in your file.
     [exec] Please go take a look in "app/bower_components/pdfjs-viewer" for the file you need, then manually include it in your file.
     [exec] 
     [exec] Running "clean:staging" (clean) task
     [exec] Cleaning .tmp...OK
     [exec] 

node -v c8.11.4
npm -v 5.6.0

How to resolve the issue

@dkumaraguru Hi, thanks for reporting this.

Which versions are you using of grunt-karma, grunt and karma?

Hi @Krinkle,

Please find the below details

grunt-karma : 0.8.3
grunt : 0.4.5
karma : 0.12.37

@dkumaraguru I'm sorry but I cannot support those versions at the moment.

Can you try again with more recent versions of the software involved?

Specifically:

  • grunt: 1.0.0 or later (current: 1.0.3)
  • grunt-karma: 2.0.0 or later (current: 3.0.0)
  • karma: 2.0.0 or later (current: 3.0.0)
  • Node.js: 6 or later (current: 10)

Thanks!

@Krinkle,

Thank you, with latest version error is resolved