Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Module parse Failed after ionic serve #1

@Ashekboy

Description

@Ashekboy

i got this typescript error when i run ionic serve

Runtime Error
Module parse failed: Unexpected token (43:1468) You may need an appropriate loader to handle this file type. | CartPage = __decorate([ | Component({ | selector: 'page-cart',template:/ion-inline-start:"C:\Users\user\mamashop\src\pages\cart\cart.html"/<ion-header >\n \n <ion-navbar color="dark">\n <ion-title>\n <ion-icon name="basket"></ion-icon> Cart</ion-title>\n </ion-navbar>\n \n </ion-header>\n \n \n <ion-content class="bg-style">\n \n <ion-list>\n \n <ion-item *ngFor="let item of cart | async">\n\n <ion-thumbnail item-left> \n <img src="{{item.image}}">\n </ion-thumbnail>\n\n <h2>{{item.name}}</h2>\n <p></p>\n \n <button ion-button clear item-right (click)="increment(item)" >\n <ion-icon color="danger" style=" font-size: 25px;" name="ios-arrow-dropup-circle"></ion-icon>\n </button>\n \n <button ion-button clear item-right (click)="decrement(item)" >\n <ion-icon color="danger" style=" font-size: 25px;" name="ios-arrow-dropdown-circle"></ion-icon>\n </button>\n \n <button style=" font-size: 20px;" ion-button clear item-right (click)="remove(item)" >\n <ion-icon color="danger" name="ios-remove-circle"></ion-icon>\n </button>\n </ion-item>\n \n <ion-item *ngIf="(cart | async)?.length" >\n <h2>Grand Total</h2> \n <h2 item-right >${{cartService.cartAmount}}</h2>\n </ion-item>\n \n <ion-item *ngIf="!(cart | async)?.length" >\n <h2 class="center">Cart is empty</h2> \n </ion-item>\n \n <button fixed ion-button icon-start block color="light" *ngIf="(cart | async)?.length" (click)="checkout()">\n <ion-icon name="ios-cart"></ion-icon>\n Checkout\n </button> \n \n </ion-list>\n \n \n </ion-content>/ion-inline-end:"C:\Users\user\mamashop\src\pages\cart\cart.html"/, | providers: [CartService, AuthService] | }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions