ionic-framework

Using forms in Ionic throws Error: NodeInjector: NOT_FOUND [ControlContainer]

瘦欲@ 提交于 2021-01-05 11:21:31
问题 I have created an Ionic app with a form. Nothing special (code is below). Before I added a form and used the formgroup and stuff it worked all fine. When I started to add the form group and all things connected I get this error: core.js:6260 ERROR Error: Uncaught (in promise): Error: NodeInjector: NOT_FOUND [ControlContainer] Error: NodeInjector: NOT_FOUND [ControlContainer] at getOrCreateInjectable (core.js:5894) at Module.ɵɵdirectiveInject (core.js:21115) at NodeInjectorFactory

java.io.IOException: Unable to establish loopback connection

孤者浪人 提交于 2021-01-05 07:39:36
问题 I get this java exception when i build android in CMD and i don't catch why and how to figure this out. The exception is: java.io.IOException: Unable to establish loopback connection What can I do ? (ionic 2 building android windows 10 Home 64 bit) 回答1: Put the options in the _JAVA_OPTIONS environment variable. For example, on Linux, put the following in your ~/.profile or ~/.bash_profile : export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true" Windows: set _JAVA_OPTIONS=-Djava.net

Failed to find 'JAVA_HOME' environment variable. Try setting it manually

霸气de小男生 提交于 2021-01-04 19:15:13
问题 I'm trying to run a sample app on my android device with the following command : sudo ionic cordova run android --device I'm getting this error : Failed to find 'JAVA_HOME' environment variable. Try setting it manually. [ERROR] An error occurred while running subprocess cordova. cordova build android --device exited with exit code 1. Re-running this command with the --verbose flag may provide more information. I already set the JAVA_HOME environment variable but that doesn't work . ~/Ionic

Failed to find 'JAVA_HOME' environment variable. Try setting it manually

ぐ巨炮叔叔 提交于 2021-01-04 18:59:10
问题 I'm trying to run a sample app on my android device with the following command : sudo ionic cordova run android --device I'm getting this error : Failed to find 'JAVA_HOME' environment variable. Try setting it manually. [ERROR] An error occurred while running subprocess cordova. cordova build android --device exited with exit code 1. Re-running this command with the --verbose flag may provide more information. I already set the JAVA_HOME environment variable but that doesn't work . ~/Ionic

Failed to find 'JAVA_HOME' environment variable. Try setting it manually

微笑、不失礼 提交于 2021-01-04 18:57:04
问题 I'm trying to run a sample app on my android device with the following command : sudo ionic cordova run android --device I'm getting this error : Failed to find 'JAVA_HOME' environment variable. Try setting it manually. [ERROR] An error occurred while running subprocess cordova. cordova build android --device exited with exit code 1. Re-running this command with the --verbose flag may provide more information. I already set the JAVA_HOME environment variable but that doesn't work . ~/Ionic

Problem screen ionic app on iPhone 11 Pro Max

五迷三道 提交于 2021-01-04 07:27:32
问题 I'm facing some problems on the look and feel of my Ionic app on iPhone 11 Pro Max: How Can I improve and fix the problem of the spaces on both upper and bottom part of the screen? **UPDATE This is my config.xml: <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> <icon height="57" src="resources/ios/icon/icon.png" width="57" /> <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" /> <icon height="29" src="resources/ios/icon/icon-small.png"

Problem screen ionic app on iPhone 11 Pro Max

我只是一个虾纸丫 提交于 2021-01-04 07:26:30
问题 I'm facing some problems on the look and feel of my Ionic app on iPhone 11 Pro Max: How Can I improve and fix the problem of the spaces on both upper and bottom part of the screen? **UPDATE This is my config.xml: <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> <icon height="57" src="resources/ios/icon/icon.png" width="57" /> <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" /> <icon height="29" src="resources/ios/icon/icon-small.png"

Ionic build failed “unexpected element <provider> found in <manifest>”

纵饮孤独 提交于 2021-01-03 05:39:57
问题 I have this code <provider android:name="android.support.v4.content.FileProvider" android:authorities="nl.x-services.plugins.videocaptureplus.provider" android:exported="false" android:grantUriPermissions="true" > <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider> But if i try "Ionic cordova run android" i have this error https://pastebin.com/BAtL0VqK What can I do with this error? 回答1: The issue seems to be with

*ngFor doesn't work in modal (Angular ionic)

左心房为你撑大大i 提交于 2021-01-01 06:40:32
问题 Im using angular in ionic application but in a modal the ngForm doesnt works. I think its cleary whit a simple code. <li *ngFor="let item of [1,2,3,4,5]; let i = index"> {{i}} {{item}} </li> this code show this in all rest of page -> list but in a modal create like this async presentModal(test){ const modal = await this.modalController.create({ component: TestPage, componentProps: { test } }); modal.onWillDismiss().then(dataReturned => { }); return await modal.present(); } dont show anything.

*ngFor doesn't work in modal (Angular ionic)

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-01 06:35:07
问题 Im using angular in ionic application but in a modal the ngForm doesnt works. I think its cleary whit a simple code. <li *ngFor="let item of [1,2,3,4,5]; let i = index"> {{i}} {{item}} </li> this code show this in all rest of page -> list but in a modal create like this async presentModal(test){ const modal = await this.modalController.create({ component: TestPage, componentProps: { test } }); modal.onWillDismiss().then(dataReturned => { }); return await modal.present(); } dont show anything.