Rw v8 bug in RedwoodJs Stripe Plugin

Howdy, all.

On upgrading to rw v8 I am getting an error with the redwoodjs stripe plugin.

Here is a minimal repo GitHub - shansmith01/rw-stripe-1

Navigate to http://localhost:8910/stripe-demo

error is

.../rw-stripe/node_modules/@redwoodjs/web/dist/cjs/components/GraphQLHooksProvider.js in Object.useQuery
40 module.exports = __toCommonJS(GraphQLHooksProvider_exports);
41 var import_react = __toESM(require("react"), 1);
42 const GraphQLHooksContext = import_react.default.createContext({
43   useQuery: () => {
44     throw new Error(
45       "You must register a useQuery hook via the `GraphQLHooksProvider`"
46     );
47   },
48   useMutation: () => {
49     throw new Error(...

@fs/.../Dev/rw-stripe/node_modules/@redwoodjs/web/dist/cjs/components/GraphQLHooksProvider.js in useQuery2
@fs/.../Dev/rw-stripe/node_modules/@redwoodjs-stripe/web/dist/cjs/hooks/useStripeCustomerPortal.js in useStripeCustomerPortal
pages/StripeDemoPage/StripeDemoPage.tsx in StripeCustomerPortalButton

All data still seems to come through in the response

Iā€™m not sure if @chrisvdm is still hanging out here and maintaining the plugin. If someone can point me in the right direction I am happy to put in a PR. I had a play and could not figure it out

Thanks.

Hi @shansmith01, thanks for following up on this. I am working on a release that will include a fix for this.

1 Like