ionic: Starter app with -v1 - ionic-framework

I am getting started with Ionic. I want to use ionic 1. I am using following command to create ionic v1 app as explained here.
ionic start -v1 myapp blank
But it's creating ionic v2 app using angular 2. I don't know why it is doing so. I also tried commands below but no luck.
ionic -v1 start myapp blank
ionic start myapp -v1 blank
ionic start myapp blank -v1
It's not showing any error or warning either. Can anyone please help? Thanks.

You need to downgrade your ionic version. Then run "ionic start myproject blank" without --v

The current way of doing this is using the --type=ionic1 option:
ionic --version # 3.8.1
ionic start test blank --type=ionic1

Related

How to build ionic1- project in ionic3 environment?

My boss gave me an ionic1 project, but my computer is the ionic3 environment. How can I package the project.
'python' : "v-2.7"
'node' : "v-8.9"
'cordova': 'v-7.1'
'ionic' : "v-3.18"
You have to just use this command
ionic start <YOUR APP NAME> --type=ionic1
hope this works for you
you can create new project from template also
ionic start [<project_name>] [<template>] --type=ionic1
example
ionic start myApp tabs --type=ionic1
for more info: https://ionicframework.com/docs/cli/start/
You can use the following code for building Ionic version 1 app in Ionic 3 environment
For sidemenu: ionic start yourappname sidemenu --type ionic1
For tabs: ionic start yourappname tabs --type ionic1

Is it possible to create Ionic 2 project in Ionic 3 CLI

When I do this, I get the message below:
Command :
ionic start blank myapp --v2
Error :
[ERROR] Sorry! The --v1 and --v2 flags have been removed.
Use the --type option. (ionic start --help)
For Ionic Angular projects, try ionic start blank myapp --type=ionic-angular
My Ionic CLI version is :
ionic -v
3.3.0
Update 2 : You can no longer create Ionic 2 project in Ionic 3 CLI.
As Ionic 2 was not updated & is rewritten using Ionic 3, which uses Angular 4.
So if you create new Ionic project it will use Ionic 3 by default.
Update 1 : More Info Available Here
With the updates few changes are done in syntax as well :
To create a new project : (You have 3 templates available with Ionic i.e. blank, tabs, sidemenu)
ionic start {{AppName}} {{TemplateName}} ==> Latest Ionic codebase project
ionic start {{AppName}} {{TemplateName}} --type ionic1 ==> Ionic v1 project
Yes, You can check this link out
ionic start [app-name] [template] --type=ionic1
ionic start [app-name] [template] --type=ionic2
ionic start [app-name] [template] --type=ionic-angular
I have Ionic -v 2.2.2 right now so couldn't test it, so please try and let me know ;)
You don't have to specify --v2 for an Ionic 2 project because an Ionic 3 project is just an Ionic 2 project with some new features such as lazy loading and adoption of Angular 4 instead of Angular 2 .Just like Angular 2 and 4 are the same framework ,Ionic 2 and 3 are the same also
You can check in
ionic start --list
Starters for Ionic 2/3 (--type=ionic-angular)
name | description
-----------------------
tabs | A starting project with a simple tabbed interface
sidemenu | A starting project with a side menu with navigation in the content area
blank | A blank starter project
super | A starting project complete with pre-built pages, providers and best practices for Ionic development.
tutorial | A tutorial based project that goes along with the Ionic documentation
aws | AWS Mobile Hub Starter

Unable to serve a Ionic Creator App

I just made a Ionic Creator App which I exported with:
$ionic start [Appname] creator:[App-ID]
Then I wanted to run it with:
$ionic serve
But I got the following Error Message:
Error output while serving an Ionic App:
I am using the Bash on Windows Command Line.
Does anybody know what is wrong here?
Thanks for helping.
Ionic servce default uses localhost, is your APP run on a virtual OS?
You may try adding --address YOUR_IP to the end.
ionic run android --livereload --consolelogs --address 192.168.0.7

Ionic Runtime Error in Tutorial

I am following the Ionic Tutorial from their docs and when I run:
ionic start MyIonic2Project tutorial --v2
I get no errors. But when I try to run it using
ionic serve
I get the following error:
I have done nothing with the code. Is there something wrong with installation of ionic?
Firstly you have to move into MyIonic2Project folder.Then run as shown below.
c:\MyIonic2Project> ionic serve

Ionic CLI not working - Ionic CLI Version: 2.0.0-beta.32

I try to make a new ionic project. when i run this command line
ionic start myProject sidemenu --v2 --ts
it is not working anymore, nothing happens.
This is my environtment setup.
Thanks in advance.