-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project error on iOS version 10.3.3 and Android version 4.4.4 #121
Comments
Hi, I also have this issue. In my browser all things work well however, when I tried both Android Emulator 7.1.1 and 7.0 they generate the same error. I did not test on Android 5.0 but I will try tomorrow. Ios simulator in Xcode is not working as well. The error is very strange because everything worked well on device before. Just follow this thread if you guys have the same problem |
Same issue here as well. Everything is fine on Chrome/Opera and Android 6.0. In my case it breaks on Firefox (version 54 - Ubuntu) and CyanogenMod 12.1 (Android 5.1.1). The Android 5.1.1 thing is strange as @fernandoarevalo seems to have no Problem on it, maybe its duet to CyanogenMod. @lingboz and @fernandoarevalo: could you test if everything works for you on Firefox (regular ionic serve)? |
I suspect this issue has to do with Ionic App Script 2.1.3, has anyone tried a lower version? I'm away from my project now so I cannot give do this now. |
Guys do you think there is something wrong with Ionic 3? I saw this error when I updated to Meteor 1.5.1 but my colleague is also using Meteor always with Meteor's built-in cordova support and his mobile app works very well with no issues. I also noticed there is some changes between the generated "meteor-client" files from different versions of Meteor. |
@hwanda, I will try downgrade app script to lower versions |
Hi, I have the same issue. The interesting thing is that the app was loading about two weeks ago and then one day this error happened. From that day it has persisted. I have tried everything. |
@wilkovanhoek, I tried to run the ionic serve in the Firefox and it generates the same error. Also, I tested in android simulator whit 5.0.0 versions but no working, it seems that works fine in devices whit higher versions to Android 5.0.0 |
Hi @pkitatta @hwonda @wilkovanhoek @fernandoarevalo I had an interesting test. I had an code archive several weeks ago and I copied the old "meteor-client.js" to my current project. The error disappeared and my code worked on mobile platforms. I double checked the differences between the two "meteor-client.js" files and I found a lot of differences. I don't know if it is because I updated Meteor version to 1.5.1 but, when I run "meteor-client:bundle" to generate a new "meteor-client.js", everything breaks again. This is absolutely not a good solution because we might lose support forever when we update things. Have you found any clues how this error is caused? |
@lingboz I also suspect it could be a meteor issue. It could be the upgrade. |
Hi @lingboz, i did a test whit meteor-client.js old version in iOS device 10.3.1 version y it works fine. The problem seems is meteor-client.js generated whit the latest meteor version |
What do you mean by test whit meteor-client.js old version? Did you downgrade your metoer-client bundler plugin to previos versions? |
@lingboz, I just added generated file by a meteor old version (backup file since february) in node_modules path and tested on the iOS device, I think the problem is when running "meteor client: bundle" that looks for the meteor latest version and not a specific version or the latest meteor-client-bundler module version (current 0.2.1) |
Hi @fernandoarevalo But I guess this might not be the answer we are looking for, because we are going to update it in the long run. Further errors may occur |
Okay, I downgraded my Meteor version to 1.5, bundled anew and received a working version. Bundled a second time and it downloaded [email protected] and... it crashed. So you are right guys! I agree, this doesn't seem to be a future save procedure:-/ |
@wilkovanhoek hmm, good to know that 1.5 is working |
Hi @wilkovanhoek,
|
|
Same issue here, I tried downgrade to version 1.5, another issue "TypeError: Cannot read property 'get' of undefined" pop up so I have to upgrade back to 1.5.1. |
Anyone double checked webpack and meteor-client-bundler to see if they have problems? |
Hi guys, I've got it working by removing the following two dependencies in meteor-client.js. |
Hi guys, I have an update on the issue. @fernandoarevalo was right to suspect the bundler. I have realised it's not a meteor version issue for three reasons:
I suspect it is a bug in the new generated file. We might need to find the author @DAB0mB for this. |
Hi everyone, I finally managed to find some time for this again. I found a working older version of meter-client.js with Meteor 1.5.1 as well on one of my systems. So the Meteor version is not the root cause. Following the solution from @sxxymzy, the issues seem to be deeper in the dependency trees. Anyhow, version 1.5 fixes it for me right now. I decided to fork the meteor-client-bundler and add the possibility to specify the meteor version (wilkovanhoek/meteor-client-bundler). This is not a permanent solution but it works for me for now. Also, I think it is a suitable addition to the meteor-client-bundler. I proposed to include the changes in the original project. |
Hi @wilkovanhoek, so does it it mean that the bundler will generate a working client file. Looking at @sxxynxy solution, I found those same lines in the older client file which has no problem, so are they really the problem? |
Hi @pkitatta, I also tried to look into the dependency a bit closer, but could not really find the source. |
I have versions 1.5 and and 1.5.1 installed on different projects. Bundling with 1.5 was giving me the new problematic file. So are you saying we should reinstall the meteor-client-bundle globally? |
As far as I could trace it, meteor-client-bundle will bundle with 1.5.1 no matter what your project release file says. It executes a regular "meteor create" command to create a temporary project. This will use the most recent stable meteor release (currently 1.5.1). That is the reason why I added the possibility to specify the meteor release for the meteor-client-bundler. To use this, you would have to install my version of meteor-client-bundler (for me it only worked globally, maybe I missed something). You can do this by executing:
after the installation check if it is version 0.2.2 now
now try to build the bundle with version 1.5 by adding "release 1.5" to the bundle command like so:
you still can use all other parameters to include a config file or whatever you included/condigured before. This worked for me even without downgrading the server side Meteor version. If it does not work for you, you can go back to the npm meteor-client-bundler package:
Maybe I should have been clearer on what I did. Anyhow, I hope this makes the process clearer. Please let us know if it works for you too. |
My meteor-client looks different. I don't have the 'Disable hot-code-push' lines. It looks like this.
I don't know, but maybe there is something wrong with the way that meteor-client is included. See "Package is not defined". Did you use the current master branch of the Tutorial? |
Yes, that how the original looks like. But when I use your bundler then I get that client file with only 12 lines. |
Oh, now I understand. that is the whole meteor-client :-( Well, it's a pity it does not work for you. What is the exact bundle command/output that you have used/got? |
I followed your instructions above. First the bundler changed to 0.2.2 and then after bundling with the |
Hmmm, that's bad. Sorry, but it seems I can't help you there. |
Same problem here, only did work with se hack of @sxxymzy |
Hi guys, there is a new release from Meteor. https://blog.meteor.com/announcing-meteor-1-5-2-105b53e0debc |
Didn't try Meteor 1.5.2, but I rebased the whole tutorial to 1.6.0beta: https://github.com/darkbasic/Ionic2CLI-Meteor-WhatsApp/ |
Hi @darkbasic |
Please note that you will need an unreleased
You can find the patch in a PR. EDIT: meteor-client-bundler 0.3.0 has just been released, there is no need for patches. |
Any news? Tried with 1.6-rc2 still not load application. And no errors from log in XCode |
@airstep We are still investigating. We have found that on android api 25 it is not working, but on later android 7.1.1 it worked. |
I must say that it is work with Simulate iOS in browser. But still doesn't in simulator\emulator\real device. |
Hi guys. Any news regarding this? I encountered the same problem like @airstep showed on the screenshot. Thanks. |
Let's track it here: #124 (comment) |
Hi everyone
I am doing the tutorial whit the Ionic 3 Version (Last Update: 15.06.2017). After install it on iOS (Iphone 6 version 10.3.3) and Android (Samsung Galaxy S3 version 4.4.4) devices, i am getting WHITE SCREEN and these errors.
iOS - Xcode console
Android - Chrome inspect console
This project has been tested also on
and everything works fine.
I really appreciate any help whit this issue. Related whit #120
Regards.
The text was updated successfully, but these errors were encountered: