Stripe Error: "ReferenceError: require is not defined"
I'm trying to add Stripe to a SolidStart project.
In the Stripe docs, they ask you to initialize Stripe on the server with:
But
require()
doesn't work in SolidStart. You have to use import.
After talking with Stripe, they said they didn't have an ES6 equivalent for initializing Stripe on the server.
So...
1. How can I get around this problem?
2. Are there any good examples of how to get Stripe working in SolidStart?2 Replies
can you not do this?
stripe
does have esm exports@Brendonovich Thanks! Apparently, you should work for stripe support. 🤣 I'll dig into this later today.
Have a good one.
@Brendonovich it worked. Thank you.