Open arzakhileshdhar opened 3 years ago
same problem for me when trying to install the FE extension manually (scandipwa 4.5.1).
I tried to solve this removing the manual installed extension (packages/@scandipwa/stripe-payments) and running instead
yarn add scandipwa/stripe-payments
and yarn
as suggested.
I thought that happened because the module package.json file is not found in the packages/@scandipwa/stripe-payments folder.
the yarn add scandipwa/stripe-payments
succesfully complete but I experience the problem anyway as soon as I run "yarn build"
apparently the solution is very easy here. Look at your theme package.json
in my case I had:
"extensions": {
"@scandipwa/paypal": true,
"stripe-payments": true
}
instead of:
"extensions": {
"@scandipwa/paypal": true,
"@scandipwa/stripe-payments": true
}
the yarn message " Loading of plugin stripe-payments failed." is correct. In fact the installed plugin (via yarn add) is "@scandipwa/stripe-payments"
when I enabled the extention:
then:
yarn start yarn run v1.22.10 $ scandipwa-scripts start Error: Cannot find module 'stripe-payments/package.json' Require stack:
ERROR!
✨ Done in 3.69s.
without using enabling stripe-payment in extension only I able to run yarn start