I am getting this error/warning when I run ionic lab
[07:14:54] watch failed: A watch configured to watch the following paths failed to start. It likely that a file
referenced does not exist:
C:\Dev\ionic2-project\src\assets\**\*,
C:\Dev\ionic2-project\src\index.html,
C:\Dev\ionic2-project\src\manifest.json,
C:\Dev\ionic2-project\src\service-worker.js,
C:\Dev\ionic2-project\node_modules\ionicons\dist\fonts\**\*,
C:\Dev\ionic2-project\node_modules\ionic-angular\fonts\**\*,
C:\Dev\ionic2-project\node_modules\ionic-angular\polyfills\polyfills.js,
C:\Dev\ionic2-project\node_modules\sw-toolbox\sw-toolbox.js
ionic lab
still runs and I can debug on browser.
From those Files listed, the only file not present in my project is service-worker.js
. I tried to do what the only other question I found says and removed all node_modules
but it didn’t work.
This is my current package.json
{
"name": "ionic2",
"author": "",
"homepage": "",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve",
"test": "ng test"
},
"dependencies": {
"@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/storage": "1.1.9",
"ionic-angular": "2.1.0",
"ionic-native": "2.5.1",
"ionicons": "3.0.0",
"rxjs": "5.2.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.7.7"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"@types/jasmine": "^2.5.42",
"@types/node": "^7.0.5",
"angular-cli": "^1.0.0-beta.28.3",
"codecov": "^1.0.1",
"gulp": "^3.9.1",
"gulp-tslint": "^7.1.0",
"gulp-watch": "^4.3.11",
"jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "^3.2.0",
"karma": "^1.4.1",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.2",
"karma-remap-istanbul": "^0.6.0",
"ts-node": "^2.1.0",
"tslint": "^4.4.2",
"tslint-eslint-rules": "^3.3.0",
"typescript": "2.2.1"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "Ionic2 project"
}
I have tried and got the same result with:
{
"name": "Ionic2",
"author": "",
"homepage": "",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve",
"test": "ng test"
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"ionic-angular": "2.0.1",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "1.0.0",
"@types/jasmine": "^2.5.42",
"@types/node": "^7.0.5",
"angular-cli": "^1.0.0-beta.28.3",
"codecov": "^1.0.1",
"gulp": "^3.9.1",
"gulp-tslint": "^7.1.0",
"gulp-watch": "^4.3.11",
"jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "^3.2.0",
"karma": "^1.4.1",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.2",
"karma-remap-istanbul": "^0.6.0",
"ts-node": "^2.1.0",
"tslint": "^4.4.2",
"tslint-eslint-rules": "^3.3.0",
"typescript": "2.0.9"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "Ionic2 Project"
}