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.

GitHub Repository: https://github.com/ionic-team/ionic

Documentation: https://ionicframework.com/docs/v3/

10389 questions
541
votes
46 answers

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
  • 5,483
  • 3
  • 11
  • 8
141
votes
16 answers

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 tast: "build" Error Type AddEvent in…
Stevetro
  • 1,933
  • 3
  • 16
  • 29
132
votes
19 answers

npm install ->Failed at the node-sass@4.5.0 postinstall script

I'm trying to do npm install and an error appears : Failed at the node-sass@4.5.0 postinstall script. I tried to delete node_modules and then reinstall it, same error appears. what will be the solution? node v8.9.3 npm v5.4.2 ionic 3.19.0
Joe Sleiman
  • 2,416
  • 5
  • 25
  • 40
85
votes
9 answers

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 but after I did change in my build.gradle with the…
Tapas Mukherjee
  • 2,088
  • 1
  • 27
  • 66
66
votes
8 answers

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. Unsupported field value: a custom Budget object export…
Sampath
  • 63,341
  • 64
  • 307
  • 441
66
votes
2 answers

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 use angular life cycle hooks then? If it is same…
Sampath
  • 63,341
  • 64
  • 307
  • 441
57
votes
7 answers

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.firestore.FieldValue.delete()}) Is it possible,…
Juliano JC
  • 765
  • 1
  • 6
  • 13
55
votes
11 answers

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:play-services-measurement-base is being requested…
54
votes
2 answers

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. How it is work with Type Script + ionic 2?
Jignesh M. Mehta
  • 904
  • 2
  • 12
  • 27
52
votes
9 answers

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
  • 523
  • 1
  • 4
  • 7
51
votes
7 answers

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 process. The error I receive is the…
Vincent
  • 595
  • 1
  • 5
  • 13
49
votes
1 answer

'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 is due to I have tried to call promise inside the…
Sampath
  • 63,341
  • 64
  • 307
  • 441
48
votes
4 answers

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 the build tool of choice, no docs on this so…
Aen Tan
  • 3,305
  • 6
  • 32
  • 52
42
votes
8 answers

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 MaterialIcons are in the assets folder (I've install…
Haddar Macdasi
  • 3,477
  • 8
  • 37
  • 59
40
votes
1 answer

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:4:18-45 is also present at [:barcodescanner:]…
Sumit Manna
  • 541
  • 1
  • 5
  • 16
1
2 3
99 100