I set up an Aurelia project using the minimal project given here.
Then I added the fetch-client
using npm install aurelia-fetch-client --save
command. It updated package.json
to contain following:
"dependencies": {
"aurelia-fetch-client": "^1.1.0"
}
But when I added import {HttpClient} from 'aurelia-fetch-client';
to my app.js
file and tried running the app, but got following error:
system.js:4 GET http://localhost:5000/aurelia-fetch-client 404 (Not Found)
How do I add that? Where does this project keep track of its dependencies? I have seen lots of tutorials which help setting up the fetch client in aurelia cli
projects. How about the project given here?