npm i -S whatwg-fetch- At top of your main file (e.g.
main.ts) addimport 'whatwg-fetch'; - If you're using typescript:
typings install dt~whatwg-fetch --global(you may need a different command depending on your versions) - Modify your
aurelia_project/aurelia.jsonand put the following into the pathbuild.bundles[1].dependencies(you'll see where all the other deps are)
"aurelia-fetch-client",
{