@lado wrote:
Hello,
I’m trying to figure out, how properly remove unnecessary page from ionic2 project, because deleting of directory causes broken references.
If page directory is page2, and page1.ts loads page2.html from function
this.navCtrl.push(page2);
, after deleting of page2 directory, shows "Ionic serve error: Error: ENOENT: no such file or directory" despite editing of imports in app.component.ts, app.module.ts or main.js, but In my case appears also in another way, even if I restore removed page2 directory content, without any using, just to avoid error. Function in page1.ts now loads page3.htmlthis.navCtrl.push(page3);
but sometimes after saving the code during the work, loads restored page2.html, which is not attached to function or anything else
Posts: 1
Participants: 1