question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BC] Customcheckout error

See original GitHub issue

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')

Capture d’écran 2021-10-17 à 21 27 16

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:11

github_iconTop GitHub Comments

5reactions
brightonmikecommented, Feb 17, 2022

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:

../packages/commerce/dist/utils/use-hook.js (24:0) @ useMutationHook

  22 | export function useMutationHook(hook) {
  23 |     const fetcher = useFetcher();
> 24 |     return hook.useHook({

You also get the same error for Shipping Method.

Getting the custom checkout to actually work therefore just feels like endless whack-a-mole.

3reactions
brightonmikecommented, Aug 23, 2022

I wasn’t able to resolve this, we abandoned Vercel Commerce and went down a different route.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with square payment in Custom React Checkout
The checkout works with paypal and test gateway but breaks when we try to use the square checkout. The error only appears when...
Read more >
WP Bigcommerce checkout page iframe not loading in Firefox
I just ran a check but it went to your BC store URL with a "Coming Soon" message. Presumably you are working and...
Read more >
BigCommerce Stencil error on checkout.php - loader.png
To fix this issue, our checkout.php page had to be reset by BigCommerce. Once it was reset the loader.png showed up correctly.
Read more >
Error checking on custom checkout page - WordPress.org
I understood what you're looking for. While Submitting the Data, if any of the required fields are skipped or any error event occurs,...
Read more >
Checkout form error - Forms - Treepl Forum
Hi,. I am getting the following error on the checkout form and due to that the form is not being redirected to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found