-
Notifications
You must be signed in to change notification settings - Fork 401
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
Stripe CLI setup Fixed Priced Subs with Node + React not working #730
Comments
Not working for me, but with a different error.
Is Node v21.5.0 not supported? EDIT: Seems the packages in this sample are extremely out of date:
Unfortunately, upgrading them introduces a whole host of other problems:
(about a dozen of these, with different line numbers in I think this demo needs some work ... :-) |
@davidgs As there seems to be no releases from Create React App from the year 2022, it may be necessary to consider migrating to something like Vite. Best. |
Turns out that, I believe, it's because you rely on React 16, so any attempt to use React 18 (or even Node >16.x) fails. Might be time to update the libraries and dependencies. :-) |
Vite? So an entirely different build system? I'm a little lost as to how that's going to help rather than just updating the requirements to more modern versions of Node and React?
So still React 16. Also:
So it's way out of date with the stripe library as well. On the client side, things are not much better:
Everything is at least a full major-release behind. |
We migrated this example code to Vite for resolving this error: Now we're continuing to work to upgrade each package. |
Interesting that I have never encountered this issue with any other CRA application. I've never had to resort to Vite. |
Bug report
Describe the bug
Setting up the Fixed Priced Subs subscription use case Stripe sample using the Stripe CLI with options Node + React is not working. After running the Stripe CLI tool, installing dependencies and running the server, navigating to
/
throws error:Error: ENOENT: no such file or directory, stat '../subscription-use-cases/client/register.html'
This is because of the following endpoint in
server.js
:To Reproduce
stripe samples create subscription-use-cases
.fixed-priced-subscriptions
.react
.node
.cd subscription-use-cases/server
(as per README).npm install
(as per Node server README).npm start
(as per Node server README)./
.Expected behavior
Successful launch of Fixed Priced Subs subscription use case Stripe sample.
Screenshots
File tree after running Stripe CLI:
The text was updated successfully, but these errors were encountered: