Open underser opened 2 years ago
Though this ticket is open already quite long, let me try to get to some solution anyway. Thank you for being thorough in your documentation. But perhaps it is fair to say that if the final result is a JS bundling that excludes your modification, that perhaps the JS bundle is not built with that customization. In step 6, you say that you followed the official doc to build things. This includes a command cd src/reactapp/
. But which folder have you navigated into? The original src/reactapp
or the new src/reactapp
?
This issue should be fixed now with the version 1.1.3 where we are not relying on the event private-content-loaded
anymore.
Preconditions (*)
Steps to reproduce (*)
Install "hyva-themes/magento2-react-checkout" via Composer
Set HYVA THEMES->Checkout->General Settings->Enable configuration to Yes
Clone magento2-checkout-example to app/code/Hyva/CheckoutExample
Follow the process described in installation and get React app running on http://localhost:3000/
Try to do simple customization from the README.
Execute build process as in docs.
Go to Magento checkout under [magento-domain]/checkout/index
Notice that the customization we did in step 5 is not loaded in the default M2 instance with the Luma theme.
Expected result (*)
Actual result (*)
I did quick investigation and found that JS event there app/code/Hyva/CheckoutExample/view/frontend/templates/react-script.phtml:23 - private-content-loaded has never triggered so that customizations under app/code/Hyva/CheckoutExample/view/frontend/web/js/react-checkout.js has never loaded.