Template parse error at many place after upgrading @angular dependencies to 2.4.8 it was working fine with 2.2.1

Unhandled Promise rejection: Template parse errors.
here is my package.json

{
    "name": "ionic-hello-world",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "2.4.8",
        "@angular/compiler": "2.4.8",
        "@angular/compiler-cli": "2.4.8",
        "@angular/core": "2.4.8",
        "@angular/forms": "2.4.8",
        "@angular/http": "2.4.8",
        "@angular/platform-browser": "2.4.8",
        "@angular/platform-browser-dynamic": "2.4.8",
        "@angular/platform-server": "2.4.8",
        "@ionic-native/background-geolocation": "^3.10.3",
        "@ionic-native/core": "^3.10.3",
        "@ionic/storage": "2.0.0",
        "angular2-signaturepad": "^2.2.0",
        "ionic-angular": "2.3.0",
        "ionicons": "3.0.0",
        "moment": "^2.18.1",
        "ng2-filter-pipe": "^0.1.7",
        "rxjs": "5.0.1",
        "zone.js": "0.6.26"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^1.0.0",
        "@types/googlemaps": "^3.26.11",
        "typescript": "2.0.9"
    },
    "cordovaPlugins": [
        "ionic-plugin-keyboard",
        "cordova-plugin-whitelist",
        "cordova-plugin-console",
        "cordova-plugin-statusbar",
        "cordova-plugin-device",
        "cordova-plugin-splashscreen",
        "cordova-sqlite-storage",
        "uk.co.workingedge.phonegap.plugin.launchnavigator",
        "cordova-plugin-actionsheet",
        "cordova-plugin-mauron85-background-geolocation",
        "cordova-plugin-geolocation",
        "cordova-plugin-compat"
    ],
    "cordovaPlatforms": [{
        "platform": "android",
        "version": "",
        "locator": "android"
    }],
    "description": "app: An Ionic project"
}

Sounds like you have some invalid template syntax or forgot to import necessary things in your app module. Impossible for anybody to magically guess without seeing the templates that are causing the error.

1 Like

Thanks @rapropos *ngIf!=“someVariable” which was working earlier was causing problem after update

@MrAbhijeet Try to change *ngIf!="someVariable" to *ngIf="!someVariable" and see if it works.

1 Like

Thanks @lucasbasquerotto did that already and its working fine