karma-runner / grunt-karma

Grunt plugin for Karma.
MIT License
468 stars 116 forks source link

typeerror cannot read property 'prototype' of undefined #266

Closed dkumaraguru closed 6 years ago

dkumaraguru commented 6 years ago
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

Krinkle commented 6 years ago

@dkumaraguru Hi, thanks for reporting this.

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

dkumaraguru commented 6 years ago

Hi @Krinkle,

Please find the below details

grunt-karma : 0.8.3 grunt : 0.4.5 karma : 0.12.37

Krinkle commented 6 years ago

@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:

Thanks!

dkumaraguru commented 6 years ago

@Krinkle,

Thank you, with latest version error is resolved