question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What are the steps after runing `new`

See original GitHub issue

Hi, currently I’m getting error of ‘no such file or directory’ when trying to import HttpClient from ‘aurelia-fetch-client’

code:

import {HttpClient} from 'aurelia-fetch-client'
...

error:

Error: ENOENT: no such file or directory, open '...\aurelinew\src\aurelia-fetch-client.js'

Do I need to install or configure anything or what am I doing wrong here? I run au run immediately after finished and don’t use any plugins

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EisenbergEffectcommented, Jul 4, 2016

First you need to npm install aurelia-fetch-client. After that, you need to go into the aurelia_project/aurelia.json file and add the following to the dependencies section:

"aurelia-fetch-client"

That should do it for you. In the future we’ll have cli commands for importing libraries into a project so you won’t need to edit the project file.

0reactions
sbolelcommented, Feb 26, 2017

here’s an excellent post on adding the fetch client to a CLI project. If you search for “aurelia fetch client cli” in Google, it should be the first one that comes up – just in case you forget to bookmark it. Hope that helps! i did the same thing a few days ago, let me know if you run into any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Tips for Building a Better Postrun Recovery Plan
Gentle movement like a casual 20 to 30 minute walk, light stretching, or yoga on the day after a hard run can help...
Read more >
How to Start Running Again After a Break - Verywell Fit
Be conservative with your running schedule. Don't run two days in a row when you're first starting out. Take an active rest day...
Read more >
Getting Back Into Running Is Easier Than You Think
Many physical therapists and running experts even recommend strength training a few weeks before returning to running to build up muscle ...
Read more >
Follow These 6 Recovery Tips After Running. Nike.com
Evidence-Based Ways to Recover After a Run · 1.Rehydrate and Replenish · 2.Carb Up · 3.Foam Roll · 4.Stretch It Out · 5.Sleep...
Read more >
6 Steps to Start Running (and Keep Running)
6 Steps to Start Running (and Keep Running) · 1. Start with Run-Walk Intervals · 2. Keep Your Effort Easy · 3. Build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found