Questions tagged [ionic-cli]

Questions related to using the ionic command line interface to interact with ionic framework

ionic-cli is the CLI that helps interact with Ionic framework, such as, creating projects, build projects into specific platforms, adding PhoneGap/Cordova plugins...

Visit its homepage for more information, http://ionicframework.com/docs/cli/

118 questions
4
votes
2 answers

CORS issues when emulating ionic app on iOS

I recently updated the ionic-cli and I am now trying to emulate an ionic app with the command ionic cordova emulate ios. However, I am getting CORS errors with every api requests Origin http://localhost:8080 is not allowed by…
emroussel
  • 1,077
  • 11
  • 19
4
votes
1 answer

usage of --livereload command in Ionic2/ Ionic3

Ionic CLI 3.8 has come up with a --livereload option to live reload the changes from your app. Can someone tell the proper command for using it? I tried with only --livereload and also ionic cordova --livreload but neither seems to work!
Debo
  • 505
  • 4
  • 13
  • 24
4
votes
0 answers

Ionic Cannot read property 'hasOwnProperty' of undefined

I'm using Ionic framework. I upgraded to a later version of the ionic cli and receive this error while running ionic serve. How do I fix the issue to allow the project to run with ionic serve or ionic build again? There was an error serving your…
4
votes
6 answers

ionic-cli to generate pages in certain folders

I am using ionic-cli 2 for generating pages for my ionic project. I would like keep my pages separately in different folders . For example , I would like to keep pages like Login , Signup in a separate folder called authentication . But at the same…
raj
  • 5,989
  • 7
  • 30
  • 62
3
votes
2 answers

Ionic serve command get stuck in " [react-scripts] Files successfully emitted, waiting for typecheck results..."

I am trying to use the CLI to create a project with Ionic and React. I noticed that the bug is in the Typescript checking step. I've been trying the following things to solve it: Remove the node_modules and the package-lock.json npm cache clear…
3
votes
1 answer

How to generate / adding new page using command in Ionic-react

ionic g page topic This command gives following error [ERROR] Cannot perform generate for React projects. Since you're using the React project type, this command won't work. The Ionic CLI doesn't know how to generate framework components for …
Govinda P
  • 3,261
  • 5
  • 22
  • 43
3
votes
1 answer

How do I start a new Ionic 4 app without using Angular? With Vue.js or Vanilla JS

I am getting started with Ionic 4, and wondering how to start a new app without using Angular? The guide mentions ionic start for this, as in ionic start [name] [template] but this creates a scaffolding set up for Angular. I think I saw a video…
user2493235
3
votes
1 answer

'ionic cordova run android' command stuck for 11 minute

I have two git branch, one is development and the other is lazy-load. I did lazy load in my lazy-load branch, but it stuck for 11 minutes after 'copy finished in 19.81 s' which case the build process too slow. The development branch which is not…
3
votes
2 answers

Ionic CLI start : starterkit v3?

with the command ionic start myapp tabs. We retrieve the starterkit from version 2. But I want to start an application Ionic v3. Ionic CLI is not up to date? All like other commands: ionic generate ??
Philippe Auriou
  • 567
  • 4
  • 17
3
votes
3 answers

Ionic CLI Build Error

I've been able to successfully using the Ionic CLI to build my iOS packages in the past, but I have a set of errors that I can't get rid of. The archive is succeeding, but I'm still having a few issues. 1) Even if I'm using the ionic build ios…
Lauren
  • 743
  • 3
  • 12
  • 24
3
votes
1 answer

ionic cli vs ionic cli2

I have not seen/found anything about the differences between ionic cli v1 and ionic cli v2, and I had a couple of questions related to this, if anyone could let me know it would be super helpful. I have an ionic v1 project, but when I run any ionic…
JackDev
  • 4,891
  • 1
  • 39
  • 48
3
votes
2 answers

Ionic 2 & Ionic 1 work on different Node Versions

I was having some major build issues with Ionic 1.7.14 on NodeJS v6. Here you can see the problem and some of the solution that people offered me. ionic.project has been renamed to ionic.config.json, please rename it. For the past 6 months I have…
Shotbyabel
  • 273
  • 1
  • 6
  • 18
2
votes
1 answer

Can you specify the platform when running ionic serve?

I just updated @ionic/cli to v6.3.0 and noticed that running ionic serve displays the app with the iOS version of default component styles. In prior versions, the Android styles were applied. Is there a way to specify which platform preview is…
Chris Voth
  • 853
  • 5
  • 13
  • 22
2
votes
2 answers

Create Ionic project of an older version using Ionic CLI

I need to use Ionic 4 instead of 5 due to compatibility reasons. How can I initialise a new ionic 4 project? According to Ionic CLI docs Use the --type option to start projects using older versions of Ionic. But doing this does not help. HP:project…
secretshardul
  • 1,635
  • 19
  • 31
2
votes
1 answer

Ionic 4 CLI can't generate service

In my ionic 4 project directory I am doing ionic g service api/login to create service through cli. But I am getting [ERROR] type must be one of: component, directive, page, pipe, provider, tabs (not service) Use the --help flag for more…
Yugandhar Chaudhari
  • 3,831
  • 3
  • 24
  • 40