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
2
votes
0 answers

Ionic tab navigation not working properly while switching the page

In my application, I have two page and on each page, I need to implement ion-tabs. My problem is when I switch my page the tab routing is not working properly. It is displaying the last tab selected of my older page. Please have look: App Component…
Pritam Prince
  • 141
  • 1
  • 1
  • 11
2
votes
2 answers

Ionic. TypeError: unsupported proxy protocol

I've installed Node, cordova and ionic CLI. but when I try to start new ionic project there's error: TypeError: unsupported proxy protocol: "xxx.xxx.xxx.xxx" at mapOptsToProxy…
2
votes
2 answers

Error: unable to get local issuer certificate when Ionic command

I'm starting to use ionic start appName to create ionic project, Ionic provide 7 kinds of template for you, but there's only 1 template named "conference" that I could download. Others, I will got error "Error: Unable to get local issuer…
JimiOr2
  • 332
  • 1
  • 3
  • 16
2
votes
1 answer

Generate Ionic Pipe error

While generating a pipe file using ionic cli by ionic g pipe example results in the following error: Error: ENOENT: no such file or directory, open '/src/PIPES/example.module.ts' at Object.fs.openSync (fs.js:652:18) at…
Dr. X
  • 2,890
  • 2
  • 15
  • 37
2
votes
2 answers

How to access ionic serve -address

The ionic CLI gives the option to serve the app via ionic serve -address=my.backend.server.com How can I access the address given through this command in the project?
ratatosk
  • 373
  • 5
  • 19
2
votes
2 answers

Ionic Share feature not working

I've been using Ionic for a while, including the "ionic share" command from the CLI. However, recently, that command fails with: $ ionic share Invalid command (CLI v2.2.2) Your system information: Cordova CLI: 6.4.0 Ionic CLI Version:…
Wayne F. Kaskie
  • 3,257
  • 5
  • 33
  • 43
2
votes
2 answers

What does actually happen when we do ionic state restore, save, clear and reset?

What does actually happen in the project, when we do following ionic state commands? restore save clear reset In what kind of situations do we need to use them? I googled about this, but couldn't find any appropriate answer with details. I…
coder
  • 8,346
  • 16
  • 39
  • 53
2
votes
4 answers

Ionic Framework: 'ionic resources' generating empty directories with no icon and splash images

I am using ionic framework version 1.7.14 to create an android app. I am trying to generate icon and splash screen by following the steps mentioned here. I have created a directory 'resources' at the root of my project and added 2 images: icon.png…
Lokesh Sardana
  • 43
  • 2
  • 10
1
vote
2 answers

How to use a dev server proxy with Ionic + Vue?

I want to use Ionic's Proxies feature in an Ionic Vuejs project. I have seen questions and answers for proxy problems with Ionic + Angular, and for Vue + Webpack, but couldn't find a solution for my Ionic + Vue problem. For now I am just working in…
obe
  • 7,378
  • 5
  • 31
  • 40
1
vote
2 answers

Create Ionic framework 4 Project

I have globally installed the latest version of Ionic CLI 4 (4.12.0) by running npm install -g ionic@4.12.0, after that, I created a new Ionic project using ionic start, I opened the project and checked my package.json file : "dependencies": { …
MDIT
  • 1,508
  • 5
  • 25
  • 38
1
vote
0 answers

Unexpected end of JSON input while parsing near when Creating new Ionic project

Before 4 days ago I was creating a new project normally but yesterday when I'm trying to create a new project I get error Unexpected end of JSON input while parsing near on ubuntu 18.04. Ionic CLI : 6.5.0 cordova-res : not installed native-run : not…
MurtadaDev
  • 11
  • 1
1
vote
3 answers

Cannot complete ionic start command

I am trying to start a new project with ionic start myApp blank and selecting React. After I press enter, I see this output. ⠦ Downloading and extracting blank starter (100.00%) events.js:174 throw er; // Unhandled ‘error’ event ^ Error:…
cfoster5
  • 1,696
  • 5
  • 28
  • 42
1
vote
1 answer

Ionic cordova build android –prod –release only builds a debug apk (app-debug.apk)

Since my latest update of the ionic cli (5.4.7), I am no longer able to a release of the code. Running Ionic cordova build android –prod –release builds only a debug apk gives med only the app-debug.apk package, saying: BUILD SUCCESSFUL in 2s 44…
kagama
  • 92
  • 1
  • 7
1
vote
0 answers

Ionic generate page without the module file

I'm trying to generate a ionic page using ionic CLI with following command, ionic g page SomePage --no-module as it said on the documentation. But it still generates the module file. When i use the command ionic g page SomePage But it generates…
Lahiru Mirihagoda
  • 1,113
  • 1
  • 16
  • 30
1
vote
0 answers

How to fix: Angular / Ionic v4 "Can't find stylesheet to import" from library in monorepo project

I have a monorepo project that includes a library, several projects, and the main project. My ionic project is in the projects folder. I cannot build my ionic project (ionic build or ng build) because it imports a module from the main project…
Kevin
  • 311
  • 1
  • 2
  • 8