Type error: Type 'Status' is not assignable to type '"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid" | null | undefined'. #191
I have this error when running the checkout function (click the "subscribe" button after being logged in):
Type error: Type 'Status' is not assignable to type '"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid" | null | undefined'.Type '"paused"' is not assignable to type '"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid" | null | undefined'.
I have checked this issue https://github.com/vercel/nextjs-subscription-payments/issues/149 but it doesn't seem to have worked. I have archived my test products, and re-created them from scratch as live products. The stripe test products were showing ok and the web hook works correctly from within Stripe.
What could cause the pause subscription status to appear?
Hello,
I have this error when running the checkout function (click the "subscribe" button after being logged in):
Type error: Type 'Status' is not assignable to type '"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid" | null | undefined'.
Type '"paused"' is not assignable to type '"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid" | null | undefined'.
I have checked this issue https://github.com/vercel/nextjs-subscription-payments/issues/149 but it doesn't seem to have worked. I have archived my test products, and re-created them from scratch as live products. The stripe test products were showing ok and the web hook works correctly from within Stripe.
What could cause the
pause
subscription status to appear?Here are my files:
types_db.ts
package.json
Help will be very much appreciated, thank you!