-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Broken apps using 5.4 and LegacyMode=false #4633
Comments
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
I was able to find the problem with the Nathanael's app above. The thing about webpack is that it is very picky with modules. So for webpack frame.topmost().navigate("/"+navigationPage);
frame.topmost().currentPage.showModal("/modal-page", {closeCallback: close}); Although the XML loads fine the JS module that should be bound for all the events is not found because there are no such modules. So it fails silently w/o logging anything in the console and works as if there is no JS file for the XML. Simply removing |
This comment was marked as abuse.
This comment was marked as abuse.
@NathanaelA , actually this was changed at some point. Can't say when exactly but currently it does not look relatively at the path you send. You can move the I can say for sure that since NS 4.2 the |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
Hey @NathanaelA , @PeterStaev , |
Hey folks, About better logging when something fails - we have small improvements in this area too, although I'm sure more can be done. |
I spoke too early 😊 |
Not sure if this is something to be posted here or the webpack issues...
Environment
Created a brand new test app today; latest of everything..
Describe the bug
If you set
"useLegacyWorkflow": false
everything works greatIf you set
"useLegacyWorkflow": true
most of the app is broken...To Reproduce
Happens on both iOS and Android.
You can download my repo from: https://github.com/NathanaelA/event-order and build with Webpack disabled; and you should see something like this when you click the "Navigate" button.
Delete your platforms, delete app off of phone/emulator, disable
LegacyMode
and try it again and you will see this:First of all you will see NONE of the aa-page events are wired up. AND on the AA-page; the navigate button is disabled (so it also didn't wire up).
Please note Android is easier to test than iOS as I don't have a close button (yet) on the showmodal call; the ShowModal button is also likewise broken..
Expected behavior
Things to work in a Webpacked app. 😀
Sample project
https://github.com/NathanaelA/event-order
The text was updated successfully, but these errors were encountered: