GithubHelp home page GithubHelp logo

Comments (11)

Nick-Achee avatar Nick-Achee commented on May 28, 2024 1

Experiencing the the user? overload issue as well

from nextjs-subscription-payments.

Nick-Achee avatar Nick-Achee commented on May 28, 2024 1

from nextjs-subscription-payments.

TiernanDeFranco avatar TiernanDeFranco commented on May 28, 2024
 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.

Stublic avatar Stublic commented on May 28, 2024

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:

image

from nextjs-subscription-payments.

iMerica avatar iMerica commented on May 28, 2024

Temp workaround:

.eq('id', parseInt(user?.id || '0'));

from nextjs-subscription-payments.

guylepage3 avatar guylepage3 commented on May 28, 2024

Sooo many typescript errors..

Once you fix that one it's on to the next.

image

from nextjs-subscription-payments.

guylepage3 avatar guylepage3 commented on May 28, 2024

And then the next... And the next...

from nextjs-subscription-payments.

guylepage3 avatar guylepage3 commented on May 28, 2024

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.

guylepage3 avatar guylepage3 commented on May 28, 2024

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.

Nick-Achee avatar Nick-Achee commented on May 28, 2024

from nextjs-subscription-payments.

leerob avatar leerob commented on May 28, 2024

#278

from nextjs-subscription-payments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.