Comments (11)
Experiencing the the user? overload issue as well
from nextjs-subscription-payments.
from nextjs-subscription-payments.
if (user && user.id) {
const { error } = await supabase
.from('users')
.update({ full_name: newName })
.eq('id', user.id); // Now guaranteed to be a string
if (error) {
console.log(error);
}
} else {
console.log("User or user ID is undefined");
}
revalidatePath('/account');
};
I did this, no idea if it works since when I try to deploy it some other error happens, so confusing
from nextjs-subscription-payments.
That just returns Type error: 'user' is possibly 'undefined'.
for me.
I have tried commenting out the entire .eq('id', user?.id);
line and it throws a similar error when building:
from nextjs-subscription-payments.
Temp workaround:
.eq('id', parseInt(user?.id || '0'));
from nextjs-subscription-payments.
Sooo many typescript errors..
Once you fix that one it's on to the next.
from nextjs-subscription-payments.
And then the next... And the next...
from nextjs-subscription-payments.
So what's happening is Stripe made a breaking change and the template could use some love and a fresh update.
from nextjs-subscription-payments.
Yeah. @Nick-Achee I just created a new issue. This tutorial is going to require quite a bit of an overhaul. Not sure anyone is down for that at Vercel.
from nextjs-subscription-payments.
from nextjs-subscription-payments.
from nextjs-subscription-payments.
Related Issues (20)
- Cant generate Static pages because navbar uses SSR for user HOT 3
- Stripe link redirects to the wrong URL when returning from the "customer Portal" HOT 1
- Feature Request: Light Mode , Dark Mode HOT 1
- Is using SUPABASE_SERVICE_ROLE_KEY in the app safe? HOT 1
- Issue with trial period setting HOT 1
- Webhook Error: No signatures found matching the expected signature for payload. HOT 3
- Is there a fork of this repo that uses popular ORMs like prisma or drizzle ? HOT 2
- Supabase + Vercel Deploy Button loading forever HOT 3
- Getting ECONNREFUSED when starting `npm run dev` HOT 1
- Breaking Change by Stripe: Example needs overhaul HOT 1
- Defining the "Main Deployment URL" HOT 2
- Type error `priceData` HOT 3
- Stuck after setting up Supabase when using "Deploy Now" HOT 4
- Feature Request: Documentation
- Cannot setup supabase local instance HOT 2
- Can't import shadcn button component HOT 2
- Vercel Deploy Button setup process broken HOT 1
- updateName doesn't update the name in account page HOT 15
- --turbo flag breaks dependencies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextjs-subscription-payments.