You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (*)
React components should be replaced/extended in M2 instance with the Luma theme.
Actual result (*)
Replacing/Extending mechanism only works on http://localhost:3000/ (server started with npm start)
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.
The text was updated successfully, but these errors were encountered:
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?
Preconditions (*)
Steps to reproduce (*)
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.
The text was updated successfully, but these errors were encountered: