FrontendMasters / angular-components

[Course] Code for the AngularJS 1.x Components & ES6 Course

Home Page:https://frontendmasters.com/courses/angular-components-es6/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cliffordfajardo opened this issue · comments

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

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