"Bundle dev update failed: Could not resolve"


#1

Hi,

bundle dev update failed: Could not resolve '../pages/settings/settings' from /Users/something/Documents/APPs/myapp/src/pages/home/home.ts

I have this error, but I can’t get where it is coming from. I added a page with CLI. Then import the class in my main page, then try to put a navCtrl.push(Settings). I guess it is this latter that crashes because if I comment it I have no error.

[...]
import { Settings } from '../pages/settings/settings';

[...]

constructor(public navCtrl: NavController){

}
gotoSettings() {
this.navCtrl.setRoot(Settings)
}

<button ion-button (click)="gotoSettings()">Settings</button>

Am I missing something? Does it have something to do with NgModule?


#2

That path is incorrect, relative to home.ts it should be ../settings/settings.

This is a mistake that the editor would normally highlight immediately, but now it doesn’t because of ionic2-app-base#93.


#3

You are right!!I thought i tried this one… I am a bit stupid on saturday morning. Thanks