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 …
[code]
[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
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’
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’;
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.
@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