Ionic2 RC0 can't find a page

I have error when execute ionic serve.
I have deleted the Page1 and I have replaced everything with new page. I don’t have page1 anymore but …

[00:54:34] Error: ENOENT: no such file or directory, scandir '/Users/user/Projects/vcp/myApp/.tmp/pages/page1’
at Error (native)
at Object.fs.readdirSync (fs.js:856:18)
at getSiblingSassFiles (/Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/sass.js:126:17)
at addComponentSassFiles (/Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/sass.js:100:24)
at /Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/sass.js:95:9
at Array.forEach (native)
at getComponentSassFiles (/Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/sass.js:94:26)
at generateSassData (/Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/sass.js:79:30)
at Object.sass (/Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/sass.js:38:9)
at /Users/user/Projects/vcp/myApp/node_modules/@ionic/app-scripts/dist/build.js:63:23


1 Like

Check app.compenents and app.modules if page1 is imported there.

Same here, no components are added

I checked and page1 not exists. I searched in all project.

check your imports.The ts files of the folder where the page is and also your:app.core.scss

The most important places to check are the pages where you want your page displayed:

import { Component } from ‘@angular/core’;
import { page1 } from ‘…/page1folder/page1’;
import { page2 } from ‘…/page2folder/page2’;

make sure your soure i correct:(/page2folder/page2’:wink:

also make sure the page itsself has ben exported as follows:
import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import { Modal,PopoverController,ViewController } from ‘ionic-angular’;

templateUrl: ‘build/pages/page2/page2.html’
export class Page2Page {
constructor(public navCtrl: NavController) {

also check wether your page is set to public or private
constructor(public navCtrl: NavController) {

I’m having the same issue, could you solve it?

Try to create the project from scratch and remove the pages before build…:S

I guess that there is some code error and you project are not being build, that’s why it could be looking for the deleted page.

Did you try delete .tmp and www/build to check if it’s being generated?

1 Like

Yes, I already try to delete .tmp folder and it’s recreated. If I add again the original page1 and page2 from sidemenu template the error dissapear.

Can you provide the code in github?

Sorry, @ecureuill, I think you were right. I had another error in my code and until I solve this (relative to Local Storage) the other error kept coming up.

Thank you!

@alejandrocao since I update to RC0 I face this kind of problem.
Before, run ionc serve will fail on errors, now it seems to runs and we think it build fine. Then we get crazy when errors popup

edit Better: The waching scripts don’t fail on errors and we believe it’s everything ok

Yes, I am experiencing more problems with RC0 than with the latest beta! :S

When I have deleted others errors from the project, the problem disappeared.