aligent / braintree-orocommerce

Braintree credit card gateway integration for OroCommerce
MIT License
0 stars 1 forks source link

Oro 4.2 Webpack Compatibility Issue #24

Closed chrisaligent closed 2 years ago

chrisaligent commented 2 years ago

Unable to build JS dependencies in 4.2.X: 2021-11-09_14-56

Have traced it down to the following 4.2 Change: https://github.com/oroinc/platform/blob/4.2.6/CHANGELOG.md#webpack-config-builder

In theory it should be a matter of adjusting: vendor/aligent/braintree-orocommerce/src/Resources/views/layouts/blank/config/jsmodules.yml

aliases:
  aligentbraintree/js/app/components/braintree-method-component$: aligentbraintree/js/app/components/braintree-method-component
  aligentbraintree/js/app/components/order-review-component$: aligentbraintree/js/app/components/order-review-component
- braintree-web-drop-in$: npmassets/braintree-web-drop-in
+ braintree-web-drop-in$: braintree-web-drop-in

dynamic-imports:
  aligentbraintree:
    - aligentbraintree/js/app/components/braintree-method-component
    - aligentbraintree/js/app/components/order-review-component
    - braintree-web-drop-in
AdamJHall commented 2 years ago

This issue has now been resolved in the 4.2 branch and will be tagged for release shortly