FrontendMasters / angular-components

[Course] Code for the AngularJS 1.x Components & ES6 Course
https://frontendmasters.com/courses/angular-components-es6/
57 stars 172 forks source link

(bug) step-4 - Testing Components upgrade Karma packages #7

Open cliffordfajardo opened 8 years ago

cliffordfajardo commented 8 years ago

Before writing your tests for step 4, Scott notes we need to update our karma.conf.js file. Afterwards, when running npm start you might get an error saying "cannot load webpack".

My Fix: I removed all the karma packages from my devDependencies in my package.json file & node_modules folder:

npm uninstall --save-dev karma karma-chai karma-chrome-launcher karma-mocha karma-mocha-reporter karma-sourcemap-loader karma-webpack

Next just install the new packages

npm install --save-dev karma karma-chai karma-chrome-launcher karma-mocha karma-mocha-reporter karma-sourcemap-loader karma-webpack
gabalicious commented 8 years ago

I changed Karma version to "karma": "^1.2.0" and this fixed it for me.