If you use the Aurelia CLI to create your project, install using a npm aurelia-fetch-client.
$ npm install aurelia-fetch-client
if you are using a basic Unix system (mac or linux), I think that Windows can have the same command.
Inside your project, in the aurelia_project folder in the aurelia.json file, add the following lines:
{ "name": "aurelia-fetch-client", "path": "../node_modules/aurelia-fetch-client/dist/amd", "main": "aurelia-fetch-client" }
In my case, I put in a set of tags, for example.
"bundles": [ { ... }, { "name": "vendor-bundle.js", ..., "dependencies": [ ... { "name": "aurelia-fetch-client", "path": "../node_modules/aurelia-fetch-client/dist/amd", "main": "aurelia-fetch-client" } ...
Or something like that.
source share