benetis / benetis.me-old

benetis.me website sources
GNU General Public License v3.0
0 stars 0 forks source link

Need help #3

Closed SravanKumarjampani closed 4 years ago

SravanKumarjampani commented 4 years ago

I'm trying to execute your shopping cart application but i'm getting error please help to resolve the bugs..

ERROR in src/app/services/products.service.ts:14:8 - error TS2339: Property 'map' does not exist on type 'Observable<Product[]>'.

14 .map(_ => {

src/app/services/cart.service.ts:29:36 - error TS2339: Property 'map' does not exist on type 'BehaviorSubject<Product[]>'.       

29     return this.itemsInCartSubject.map((items: Product[]) => {

ERROR in Unexpected value 'CartService in D:/Proj/src/app/services/cart.service.ts' imported by the module 'AppModule in D:/Proj/src/app/app.module.ts'. Please add a @NgModule annotation. Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files.

Capture

benetis commented 4 years ago

Blog was written with quite the old angular version. Check it out, it should work