Node : v6.9.5
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : 6.0.0
npm : 3.10.10
And I encounter the follow problem when generate the tabs
Xis-MacBook-Pro:myIonicProject Bill$ ionic generate
? What would you like to generate: tabs
? What should the name be? mytabs
? How many tabs? 2
? Name of this tab: Tab1
? Name of this tab: Tab2
TypeError: Cannot read property 'replace' of undefined
ionic info
global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 2.0.2
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.5.2
System:
Node : v6.11.1
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : 6.0.0
npm : 3.10.10
The error is:
Xis-MacBook-Pro:Documents Bill$ ionic start myIonicApp
? What starter would you like to use: sidemenu
✔ Creating directory ./myIonicApp - done!
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
[INFO] Fetching starter template sidemenu (https://github.com/ionic-team/ionic2-starter-sidemenu/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> npm install
✔ Running command - done!
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!
> git init
✔ Running command - done!
> git add -A
✔ Running command - done!
> git commit -m "Initial commit" --no-gpg-sign
✔ Running command - done!
♬ ♫ ♬ ♫ Your Ionic app is ready to go! ♬ ♫ ♬ ♫
Run your app in the browser (great for initial development):
ionic serve
Run on a device or simulator:
ionic cordova run ios
Test and share your app on a device with the Ionic View app:
http://view.ionic.io
? Link this app to your Ionic Dashboard to use tools like Ionic View? No
Go to your newly created project: cd ./myIonicApp
Xis-MacBook-Pro:Documents Bill$ ionic generate
[ERROR] Sorry! ionic generate can only be run in an Ionic project directory.
Xis-MacBook-Pro:Documents Bill$ cd myIonicApp/
Xis-MacBook-Pro:myIonicApp Bill$ ionic generate
? What would you like to generate: tabs
? What should the name be? tab
? How many tabs? 2
? Name of this tab: T1
? Name of this tab: T2
TypeError: Cannot read property 'replace' of undefined
Xis-MacBook-Pro:myIonicApp Bill$
Run your app in the browser (great for initial development):
ionic serve
Run on a device or simulator:
ionic cordova run ios
Test and share your app on a device with the Ionic View app: http://view.ionic.io
? Link this app to your Ionic Dashboard to use tools like Ionic View? No
Go to your newly created project: cd ./myIonicApp
Xis-MacBook-Pro:Documents Bill$ ionic generate
[ERROR] Sorry! ionic generate can only be run in an Ionic project directory.
Xis-MacBook-Pro:Documents Bill$ cd myIonicApp/
Xis-MacBook-Pro:myIonicApp Bill$ ionic generate
? What would you like to generate: tabs
? What should the name be? tab
? How many tabs? 2
? Name of this tab: T1
? Name of this tab: T2
TypeError: Cannot read property ‘replace’ of undefined