commerce: [BC] Customcheckout error
I have just cloned the project and set my .env with BC then enabled customCheckout which display an error when clicking on checkout. See the picture bellow
TypeError: Cannot read properties of undefined (reading 'fetcher')
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 10
- Comments: 20 (1 by maintainers)
If you try the fix here https://github.com/vercel/commerce/issues/533#issuecomment-981149223 you only just get other errors further down the line. E.g. if you click into Payment Method, you get:
You also get the same error for Shipping Method.
Getting the custom checkout to actually work therefore just feels like endless whack-a-mole.
I wasn’t able to resolve this, we abandoned Vercel Commerce and went down a different route.
@Florian-crg I managed to get mine working but, you have to add the
useCheckouthook to yourprovider.tsin the BC folder. Check the comment i left in the code below.Why this issue has not been solved or have no idea to solve yet.
I think custom checkout only works with OrderCloud 😞