-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next.js/examples/with-stripe-typescript can't build #50541
Comments
Additional note: I'm able to run the project locally |
This example not uses the deprecated stripe method (https://stripe.com/docs/js/deprecated/redirect_to_checkout) it uses a different package I fixed the example for you, but there where some other issues too, like an outdated Stripe Version, after updating some depcrecated fields and also some Typescript Errors aswell. |
@ciruz Thank you. I was actually able get this part of the code fixed, among other things like you mentioned.
|
Hey @CharlesCCC, checkout the code: Also since you will get an error that serverless does not has a proper ts declaration file, I added a // @ts-ignore
import { validateCartItems } from 'use-shopping-cart/utilities' |
Hey @CharlesCCC just pushed a fix for the ts error dayhaysoos/use-shopping-cart#325, so if this PR get's merged, you can remove the |
@ciruz You rock !!! Thank you so much for the quick turn-around. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 Binaries: Node: 16.18.0 npm: 9.6.7 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.4.5-canary.2 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 4.8.4
Which example does this report relate to?
with-stripe-typescript
What browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
I tried to deploy
https://github.com/vercel/next.js/tree/canary/examples/with-stripe-typescript
to Vercel. but got the following error when runningnpm run build
Expected Behavior
it should finish run build without error.
To Reproduce
git clone --depth=1 https://github.com/vercel/next.js -b canary
cd next.js/examples/with-stripe-typescript
npm i
npm run build
The text was updated successfully, but these errors were encountered: