# React 19.2.8 and react-square-web-payments-sdk@3.3.0 examples are not working

**URL:** <https://developer.squareup.com/forums/t/react-19-2-8-and-react-square-web-payments-sdk-3-3-0-examples-are-not-working/28227>\
**Category:** MCP\
**Tags:** web-payments-sdk\
**Created:** [October 15, 2026, 6:14pm UTC](https://developer.squareup.com/forums/t/react-19-2-8-and-react-square-web-payments-sdk-3-3-0-examples-are-not-working/28227 "2026-10-15T18:14:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esmcfadden](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@Esmcfadden](https://developer.squareup.com/forums/u/Esmcfadden)\
**Post date:** [October 15, 2026, 6:14pm UTC](https://developer.squareup.com/forums/t/react-19-2-8-and-react-square-web-payments-sdk-3-3-0-examples-are-not-working/28227/1 "2026-10-15T18:14:19Z")

</div>

I am using React 19.2.8 and [react-square-web-payments-sdk@3.3.0](mailto:react-square-web-payments-sdk@3.3.0) and it is not finding payment form.

I am using the react code from the sample on

> **[Online Payments with Square and React](https://developer.squareup.com/blog/online-payments-with-square-and-react/)**
>
> Learn how to build an end-to-end payment flow using Next.js and the React Square Web Payments SDK

turkeyshootform.jsx:4 Uncaught SyntaxError: The requested module ‘/node\_modules/.vite/deps/react-square-web-payments-sdk.js?v=b7dd10de’ does not provide an export named ‘PaymentForm’ (at turkeyshootform.jsx:4:10)

turkeyshootform.jsx:4 Uncaught SyntaxError: The requested module ‘/node\_modules/.vite/deps/react-square-web-payments-sdk.js?v=b7dd10de’ does not provide an export named ‘CreditCard’ (at turkeyshootform.jsx:4:10)

---

<div class="post-metadata">

**Author:** ![jaeha](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jaeha](https://developer.squareup.com/forums/u/jaeha)\
**Post date:** [October 16, 2026, 1:53am UTC](https://developer.squareup.com/forums/t/react-19-2-8-and-react-square-web-payments-sdk-3-3-0-examples-are-not-working/28227/3 "2026-10-16T01:53:56Z")

</div>

Welcome to the Developer Forum!

This error usually comes from a stale Vite pre-bundle cache, not from React 19. Try:

1. Stop the dev server, delete `node_modules/.vite`, then run `npx vite --force` (or `npm run dev -- --force`)
2. Run `npm ls react-square-web-payments-sdk` to confirm 3.3.0 is the version that actually resolved
3. Keep the named imports: `import { PaymentForm, CreditCard } from 'react-square-web-payments-sdk';`

If it still fails, please share your `package.json` and `vite.config.js`. Please remove any access tokens or other secrets before sharing.

---

<div class="post-metadata">

**Author:** ![Esmcfadden](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@Esmcfadden](https://developer.squareup.com/forums/u/Esmcfadden)\
**Post date:** [October 16, 2026, 1:56pm UTC](https://developer.squareup.com/forums/t/react-19-2-8-and-react-square-web-payments-sdk-3-3-0-examples-are-not-working/28227/4 "2026-10-16T13:56:11Z")

</div>

Thank you. This fixed my problem. I sure wish this was in the forums. I wasted a lot of time trying to find a solution before contacting you.
