stripe-samples / checkout-single-subscription

Learn how to combine Checkout and Billing for fast subscription pages
https://checkout.stripe.dev/?mode=subscription
MIT License
743 stars 335 forks source link

Examples needed fixing for legibility and Windows environments #219

Open replaysMike opened 2 years ago

replaysMike commented 2 years ago

Bug report

I've added a pull request #218 to fix a few issues with the examples documentation, especially when using on Windows environments. The formatting was also fairly inconsistent, and I feel the updates I did makes it more legible.

Welcome any changes of course.

replaysMike commented 2 years ago

I should note, the instructions for running the node server are also incorrect.

cd server/node
# There's a README in this folder with instructions to run the server and how to enable Stripe Tax.
npm install
npm start

The packages.json is in the root folder, and this repo does not include the node/server.js folder/file.

Error: Cannot find module 'C:\tools\checkout-single-subscription\server\node\server.js'  
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)        
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)                   
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {                                        
  code: 'MODULE_NOT_FOUND',                                                              
  requireStack: []                                                                       
}