hyva-themes / magento2-react-checkout-offline-payments

Offline payment methods for the Hyvä React Checkout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lodash.get dependency in purchase order

rajeev-k-tomy opened this issue · comments

Getting following error with latest react checkout versions:

Failed to compile.

Module not found: Error: Can't resolve 'lodash.get' in 'reactapp/src/paymentMethods/offline/src/components/purchaseOrder'
ERROR in ./src/paymentMethods/offline/src/components/purchaseOrder/PurchaseOrder.jsx 8:0-30
Module not found: Error: Can't resolve 'lodash.get' in 'reactapp/src/paymentMethods/offline/src/components/purchaseOrder'

ERROR in [eslint]
src/paymentMethods/offline/src/components/purchaseOrder/PurchaseOrder.jsx
  Line 2:18:  Unable to resolve path to module 'lodash.get'  import/no-unresolved

This is because there is no longer lodash.get available in the react checkout. Instead, it uses lodash-es. Need to change the import statement here.