meteor-angular2.0-socially icon indicating copy to clipboard operation
meteor-angular2.0-socially copied to clipboard

Cannot find module '@angular/http'

Open clementbirkle opened this issue 8 years ago • 26 comments

Hello,

I installed the tutorial at the step 20. (meteor npm install => meteor run)

When I run Meteor, visibly, it is unable to resolve "@angular/http" I follow the indication: meteor npm install --save @angular but it make an error => see screenshot capture d ecran 2017-01-19 a 09 51 24

And if I go on the app, the console of navigator shows: capture d ecran 2017-01-19 a 09 52 16

Thank you for your help :)

clementbirkle avatar Jan 19 '17 09:01 clementbirkle

Hi @Clem01 , I get the same problem. Did you find the solution to the problem?

ayeyaheyao avatar Jan 25 '17 19:01 ayeyaheyao

Same Problem here.. Error occured after i've done Step 19.

sakujo avatar May 01 '17 14:05 sakujo

@clementbirkle npm install @angular/[email protected] version 2.1.2 is required

4-life avatar May 12 '17 14:05 4-life

change your imports to this import { HttpClientModule } from '@angular/common/http';

https://angular.io/guide/http for more guides

AbetiAbebe avatar Jul 24 '18 08:07 AbetiAbebe

@clementbirkle try this: npm install @angular/http@latest

xoonick avatar Dec 12 '18 15:12 xoonick

This worked for me: npm i @angular/http

Johnny346 avatar Feb 06 '19 00:02 Johnny346

npm i @angular/http

nice work. worked for me thank u...

nalinkariyawasam23 avatar Feb 10 '19 07:02 nalinkariyawasam23

node package install angular/ http for me @4-life thanks

dreDevOS avatar Feb 12 '19 04:02 dreDevOS

Error: Cannot find module '@angular /http'

Command: npm i @angular/http

it's working for me now

thank you

nagipogu avatar Mar 05 '19 07:03 nagipogu

You can run:

npm install @angular/http@latest

to install the latest version and it will work fine, however this is a deprecated module and you might want to use HttpClient

SammyRigan avatar May 05 '19 01:05 SammyRigan

@nagipogu it works for me.Thanks

soumyadip007 avatar Jun 14 '19 07:06 soumyadip007

npm i @angular/http

this work for me, thank you <3

DuongNgocDung avatar Jul 06 '19 02:07 DuongNgocDung

this is work for me npm i @angular/http

mohodyash avatar Jul 29 '19 17:07 mohodyash

npm i @angular/http worked perfectly

abitoguna avatar Aug 15 '19 11:08 abitoguna

npm install work for me

On Sat, 4 May 2019 at 8:42 PM, SammyRigan [email protected] wrote:

You can run:

npm install @ angular/http@latest

to install the latest version and it will work fine, however this is a deprecated module and you might want to use HttpClient

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Urigo/meteor-angular2.0-socially/issues/212#issuecomment-489379380, or mute the thread https://github.com/notifications/unsubscribe-auth/AE5BHITSBS5DR2WOI5P5HOLPTY3QRANCNFSM4C47NVYA .

dreDevOS avatar Aug 15 '19 16:08 dreDevOS

go to this link and install it npm i @angular/http

AtitMore avatar Sep 15 '19 20:09 AtitMore

Issue arises because of unavailability of http package, Please use this command to resolve issue npm i @angular/http

It worked fine for me, Thanks everyone who recommended this command!

MalikMursalin avatar Sep 20 '19 07:09 MalikMursalin

Can this now be closed? Anybody?

tjmosia avatar Nov 05 '19 00:11 tjmosia

@clementbirkle try this: npm install @angular/http@latest

Thank you . It work. ^_^

druggood avatar Nov 13 '19 04:11 druggood

still working : npm i @angular/http

thank

nevilly avatar Nov 19 '19 12:11 nevilly

how to make a file uploade in angular

Avinash-creator avatar Dec 14 '19 08:12 Avinash-creator

npm i @angular/http worked for me

Andrew-1000 avatar Jan 18 '20 06:01 Andrew-1000

Solution to solve this problem that you have to add latest version http package into Angular: reset IDE tool.

npm install @angular/http@latest

minhkhai1992 avatar Jan 31 '20 01:01 minhkhai1992

npm i @angular/http worked for me.

BhathiyaTK avatar Jul 22 '20 04:07 BhathiyaTK

Thanks

This is work for me npm i @angular/http

ashfaqueraza avatar Aug 27 '20 17:08 ashfaqueraza

npm i @angular work for me .

esasiyun17 avatar Jan 17 '21 12:01 esasiyun17