Skip to main content

Questions tagged [ionic3]

Ionic 3 was the newer version of Ionic, an open source SDK that enabled developers to build mobile apps using standard web technologies (HTML, CSS, and JavaScript). Ionic 3 finally took a back-seat to Ionic 4 in 2019 after 2 years. Ionic 3 was paired with Angular 4 and above.

622 votes
50 answers
1.2m views

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in Ionic 3

When I run an Ionic 3 project using the ionic serve command, then I am getting this error:
Himanshu Shekhar's user avatar
141 votes
16 answers
225k views

Component is part of the declaration of 2 modules

I try to build an ionic 2 app. When I try the app in the browser with ionic serve or launch it on an emulator everything works fine. But when I try to build it every time the error ionic-app-script ...
Stevetro's user avatar
  • 1,963
136 votes
19 answers
198k views

npm install ->Failed at the [email protected] postinstall script

I'm trying to do npm install and an error appears : Failed at the [email protected] postinstall script. I tried to delete node_modules and then reinstall it, same error appears. what will be the ...
Joe Sleiman's user avatar
  • 2,476
84 votes
9 answers
23k views

Error: Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25 in Ionic 3

I am getting the following error suddenly while building Ionic 3 app for Android. Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25 We have one solution from Android Studio here ...
Tapas Mukherjee's user avatar
71 votes
8 answers
98k views

Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object

Below code works fine until today. But I don't know now it is not working and gives below error.Could you tell me why? Error: Function DocumentReference.set() called with invalid data. ...
Sampath's user avatar
  • 65.3k
66 votes
3 answers
35k views

Ionic 3 Component vs Page

Can you tell me what is the difference between Component and Page generator in the Ionic 3 app? It seems I can use page life cycle hooks like ionViewWillLeave inside the component too.So when should I ...
Sampath's user avatar
  • 65.3k
59 votes
7 answers
48k views

How to delete a field in a Firestore Document?

How to delete a Document Field in Cloud Firestore? ... I'm using the code below but I can not. this.db.doc(`ProfileUser/${userId}/followersCount/FollowersCount`).update({ [currentUserId]: firebase....
Juliano JC's user avatar
55 votes
11 answers
18k views

Problem with play-services-measurement-base on ionic

I have a problem on an ionic project that it started happening yesterday without modifying any dependency. When I run ionic cordova run android I have this error: The library com.google.android.gms:...
Ivan Lencina's user avatar
  • 1,785
55 votes
1 answer
120k views

'await' expression is only allowed within an async function

I have an async method like below. It shows an error [ts] 'await' expression is only allowed within an async function. here await userProfile.set({. Can you tell me how to sort out it? Note: Maybe it ...
Sampath's user avatar
  • 65.3k
54 votes
2 answers
50k views

How to get device width and height in Ionic using TypeScript?

I am trying to get device width and height in ionic 2 using typescript. In previous version of ionic 2 I used, window.screen.width window.screen.height but in newer version this is not working. ...
Jignesh M. Mehta's user avatar
52 votes
9 answers
60k views

how to check app running in foreground or background in ionic/cordova/phonegap

Is there any way to check whether the app is running in foreground or background in ionic/cordova/phonegap, I need to use it on android and ios, thanks a lot
user1521398's user avatar
51 votes
7 answers
28k views

Ionic iOS build fails, error archive not found

I have an Ionic project. Running via ionic serve gives me the result I expect, no problem there. However, when running a command like ionic cordova run ios -lc, I receive an error breaking the build ...
Vincent's user avatar
  • 595
49 votes
4 answers
91k views

Correct way to use image assets in Ionic 2

What’s the best practice for image assets in Ionic 2? I have a bunch of SVGs I want to use as non-system icons. I found some older tips on using Gulp but it seems Ionic team has decided on Rollup as ...
Aen Tan's user avatar
  • 3,325
42 votes
8 answers
56k views

How to fix the connection to the server was unsuccessful. (file ///android_asset/www/index.html)

I've added material icons to ionic2 app , and since then I get error ""The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"" although the css and fonts file of ...
Haddar Macdasi's user avatar
40 votes
1 answer
23k views

Attribute application@allowBackup value=(false) from AndroidManifest.xml is also present at [:barcodescanner:] AndroidManifest.xml value=(true)

I’m trying to set the allowBackup attribute in my ionic 3 app manifest to false but gradle complains with the following error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:...
Sumit Manna's user avatar

15 30 50 per page
1
2 3 4 5
692