karma icon indicating copy to clipboard operation
karma copied to clipboard

Error: No provider for framework:requirejs

Open tychio opened this issue 13 years ago • 8 comments

I according to the karma page write a test with requirejs. But output a error is no provider requirejs.

And I downloaded the Demo and fixed some old version problems. But still output it.

version: node 0.8.7 karma 0.10.2 config: frameworks: ['jasmine', 'requirejs'],

Should I update version or change config?

Or to update the Demo and tell me right,please!

tychio avatar Oct 12 '13 07:10 tychio

The problem is that the demo is designed for karma 0.8 and a lot about the configuration file changed in 0.10. Please file an issue about this here. For the time being you can simply use [email protected] if you want to use the demo, otherwise take a look at the this page which has the updated version for `0.10?

dignifiedquire avatar Oct 12 '13 10:10 dignifiedquire

I'm sure my karma is 0.10.2.

I updated the demo config for 0.10, but the issue still exist.

tychio avatar Oct 13 '13 07:10 tychio

Try installing the provider manually by calling npm install karma-requirejs

dignifiedquire avatar Oct 15 '13 20:10 dignifiedquire

Oh, yes, It's work. thanks for your patience.

tychio avatar Oct 16 '13 01:10 tychio

Solved this problem by calling "npm install karma-requirejs"

sunfeng90 avatar Feb 07 '17 08:02 sunfeng90

"npm install karma-requirejs" solved it.

bashisha avatar Jun 14 '17 18:06 bashisha

This isn't enough, you also have to npm install requirejs

See here

edarioq avatar Sep 23 '18 16:09 edarioq

npm install requirejs karma-requirejs . then add the karma-requirejs in the plugin section of the karma config file

jay-dibs-victor avatar Oct 31 '19 12:10 jay-dibs-victor