#crimsoncaius
1 messages · Page 1 of 1 (latest)
hello! can you paste the URL of the guide you're following?
instead of that line which is throwing that error
try
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');
replace with your own secret key
I can't get it to work but I think I figured out why. Vite doesn't allow cjs type of import with require but Node only allows for cjs type of import because the ES6 import isn't supported yet
By the way, your original example is broken
Like the example downloaded from the Stripe Docs