Ionic serve always serve the same template content

Hello,

I am experiencing a really weird problems when it comes to serving any app on ionic 2. It always shows the same template, no matter what I change. I’ve changed HTML Templates, TypeScript files, and there is always the same content.

I created a new app from the tabs starter template with ionic start myApp tabs --v2 and then npm install on the created folder.

Moreover, I tried to download the Ionic Conference App and it has the same behaviour. It always shows the starter template.

Here you have my installed packages version:
npm: 4.0.5
ionic: 2.2.2

ionic-conference-app
β”œβ”€β”€ @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/core@3.1.1
β”œβ”€β”€ @ionic-native/in-app-browser@3.1.1
β”œβ”€β”€ @ionic-native/splash-screen@3.1.1
β”œβ”€β”€ @ionic/app-scripts@1.1.4
β”œβ”€β”€ @ionic/storage@2.0.0
β”œβ”€β”€ ionic-angular@2.3.0
β”œβ”€β”€ ionicons@3.0.0
β”œβ”€β”€ rxjs@5.0.1
β”œβ”€β”€ sw-toolbox@3.4.0
β”œβ”€β”€ typescript@2.0.9
└── zone.js@0.7.2

Thank you!

1 Like

This is a bug in ionic-app-scripts: https://github.com/driftyco/ionic-app-scripts/issues/859

I don’t know if it is the same issue as mine, but I had the service worker active. It was loading the same assets every time without even refreshing the content betweeen apps. So I commented these lines out, deregistered the service worker, and it works as expected now :slight_smile:

Ah this was my issue too! Thank you!