Open markshust opened 8 years ago
Thanks for the report. Regrettably I don't have a cordova setup here and am not familiar with Cordova at all. I'll gladly accept help on this and assist however I can in helping such a person track this down.
Depending on which release of ecmascript-hot you're using, is it possible you need special permission for the extra port? (If you saw a message like => Starting gadicc:ecmascript-hot server on port 5002.
on the server on startup).
@gadicc sorry, I'm a bit ignorant myself on how Cordova works. Given that this is a popular subject and will eventually lead to a true hot component reload developed by mdg, it might make sense to bring the cordova export @martijnwalraven into the loop, as they will probably eventually deal with the same issue.
Oh by the way, this module works pretty great! I've tried a few, and this is the only one that worked out of the box for me. Big 👍
Thanks! There are still a few smaller issues which are gradually getting fixed up (the fast
releases include most of them).
Unfortunately I'm not sure how much @martijnwalraven will be able to help without knowing the meteor-react-hotloader code better, in the same way that this is a problem for me not knowing cordova better. Ideally we need someone who knows both projects quite well. Nevertheless, I'll accept any help I can get :)
P.S. I think the .babelrc
support is a prime candidate for inclusion in Meteor. The hotloading stuff however it a bit more complicated. The client side part could be eligible after a lot more work, but the server side stuff, I'm not sure if it's the route I'd recommend for official Meteor.
@markoshust: Have you tried remote debugging using Safari? I suspect there may be some JavaScript or network errors that cause the app startup to time out.
I don't know the meteor-react-hotloader code, but since it uses an extra port, you should add an App.accessRule
for it. Also, because Cordova apps run from localhost
on the device, you'll want to make sure to use ROOT_URL
to decide what machine to connect to.
@martijnwalraven unfortunately I can't start simulator until the app starts, so that doesn't help here at all.
i tried adding an App.accessRule:
App.accessRule('http://*:3002');
however, it had no effect. I believe these two lines are telling me it's able to connect to port 3000 though?
2016-04-10 13:28:46.024 FLOW[4829:3786022] Start downloading asset manifest from: manifest.json -- http://192.168.1.66:3000/__cordova/
2016-04-10 13:28:46.046 FLOW[4829:3786490] Downloaded asset manifest for version: 6997f1e1a4033b7f7110ed97c81f6babe65522c0
Adding a ROOT_URL=http://localhost:3000
also had no effect.
I'm also wondering if there could be a false positive on the transform stateless code that could be causing this error. Can you try the latest experimental release gadicc:ecmascript-hot@=1.3.2-fast.13
, confirm that it's still not working (there have been a bunch of other changes), and then modify your package.json
like:
{
"ecmascript-hot": {
"transformStateless": {
"pathMatch": "NOMATCH",
}
}
}
to see if that makes any difference?
Installing this module killed running this on Cordova through ios simulator:
The app just loads black in Cordova after the splash screen is show. If I back out this module and put
ecmascript
back in, everything works properly.