I created a sample ionic 2 App which works perfectly on Chrome and Android Browser, but when I tried it on Internet Explorer It giving me below error.
>EXCEPTION: Error: Uncaught (in promise): SyntaxError
>EXCEPTION: Error: Uncaught (in promise): SyntaxError
>STACKTRACE:
>Error: Uncaught (in promise): SyntaxError
>at resolvePromise (http://localhost/build/js/angular2-polyfills.js:602:26)
>at Anonymous function (http://localhost/build/js/angular2-polyfills.js:638:18)
>at ZoneDelegate.prototype.invokeTask
While Angular 2 sample project is working fine on Internet Explore why there is a difference in IONIC 2 build , UI issue is fine but at least it should run the App without breaking.
I just found this official post on the Ionic forum saying that Ionic 2 doesn't support Internet Explorer, only Edge: https://forum.ionicframework.com/t/ionic-2-sample-app-not-working-on-internet-explore/50283/2
No idea though if this will change for future releases, but I wouldn't count on it... Time to say goodbye to IE, finally ;)
I was able to render IONIC 2 on Internet Explolrer 10.
In order to install the proper polyfills do this:
npm install core-js --save
Then in your app class import it
import 'core-js';
It worked for me with core-js version 2.4.1 on Ionic 2 beta 10, Angular 2.0.0-rc.3 .
On my computer it looks like IE opens the ionic application in Compatibility Mode by default.
After you disable Compatibility Mode the pages will work fine.
Related
I am new on Ionic Mobile application development, so I am trying to POST data from Ionic app. Whenever I have run the app in browser using
ionic cordova run browser
It display below issue in console,
Native: tried calling HTTP.post, but the HTTP plugin is not installed.
Install the HTTP plugin: 'ionic cordova plugin add cordova-plugin-advanced-http'.
I have installed same plugin using terminal but terminal give warnings as its already installed.
Please Suggest.
Based on this https://ionicframework.com/docs/native/http/ you also need to run
npm install --save #ionic-native/http
and referencing it correctly in your app, please take a look at above link
Also for running app in browser try below command
Ionic serve
See https://github.com/ionic-team/ionic-native/issues/1975
The issue appears to have been fixed but there might be a lag in updating npm
I hade the same problem and I solve it with uninstall and reinstall the plugin
Uninstall plugin completely
ionic cordova plugin remove cordova-plugin-advanced-http
npm uninstall #ionic-native/http
and reinstall it
ionic cordova plugin add cordova-plugin-advanced-http
npm install #ionic-native/http
The Native Http plugin is the only way to handle the CORS from the client-side.
The way I see your problem, there might two possible fixes
Check whether the plugin is called after the platform.ready().
Even after it, if doesn't work or show the same error then follow this method.
// Declare cordova as a global constant
declare const cordova;
// directly call the cordova pulgin using "cordova.pulgin.http"
cordova.plugin.http.post(apiUrl, {}, {},
response => {},
response => {})
We are setting up automated Jenkins iOS & android builds for ionic 3 app. The Jenkins is a shared system by many teams and doesn't have ionic 3, instead it has following components. The iOS build is working fine without any issues, but when we try to build android, it is failing and throwing error :
can't find modules.
Can you please suggest what could be the issue?
$ npm -v
3.10.10
$ cordova -v
6.3.1
$ ionic -v
2.1.7
This was a typo which worked fine in iOS build
While importing modules, the file names started with small case, but in the import statement it was given as capitals. This caused the issue.
I have added a Cordova file transfer plugin from Ionic native and imported transfer from ionic native to my application page
I am not getting any syntax error as well as command prompt errors
But when I run my application using Ionic serve it is showing me
{Cannot find module "ionic-native"}
Can anyone please help me on this
Did u check it properly, weather u have installed ionic-native ?
Plus which version of ionic are you using, in ionic 3 (launched recently) they removed ionic-native and kept it seperately in #ionic-native. And u'll have to indivisually install every plugin u r using.
http://blog.ionic.io/ionic-native-3-x/
While using ionic2 running basic app also it's giving error like this: Uncaught (in promise) TypeError: object is not a constructor(…) in ionic2.
create new app: ionic start appname tutorial --v2
running app: ionic serve
My system Specifications:
Ubuntu :14.04 (64bit)
Chrome :Version 49.0.2623.87 (64-bit)
Node : v5.6.0
npm : v3.6.0
Please see here. It shows up with a particular Chrome Canary version, and it seems due to es6-shim. It has been reported to have been fixed in es6-shim v0.34. Or you can switch to core-js shim, as mentioned here.
But if you're using some library (like Ionic) that depends on a particular es6-shim version, I guess you'd wait for library update.
I am trying to install a Django plugin with eclipse/pydev, and I get the following error message after an installation attempt.
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Artifact not found: org.eclipse.update.feature,org.python.pydev.django_editor.feature,0.5.8.
http://eclipse.kacprzak.org/updates/features/org.python.pydev.django_editor.feature_0.5.8.jar
Artifact not found: osgi.bundle,org.python.pydev.django_editor.plugin,0.5.8.
http://eclipse.kacprzak.org/updates/plugins/org.python.pydev.django_editor.plugin_0.5.8.jar
Anyone get this message before, or have the slightest clue what it might mean?
Just to note, that django editor is not the same one that's talked about in the PyDev homepage... PyDev does have a django editor integrated by default, which is made available when you install Aptana Studio 3 ( see http://pydev.org/download.html for details ). The Django version you're talking about ( http://eclipse.kacprzak.org ) was at one point integrated in PyDev but as Aptana Studio 3 evolved it's integration has been deprecated in favor of the one in Aptana Studio 3.