ShariqAnsari88 / strapi-simple-one

59 stars 33 forks source link

Kindly solve this error #2

Open avinashmaurya86 opened 7 months ago

avinashmaurya86 commented 7 months ago

https://github.com/ShariqAnsari88/strapi-simple-one/blob/39443bc26aef3f17ebad5e82bff0fe278b2f8a70/src/api/order/controllers/order.js#L11

1. const stripe = require("stripe")(process.env.STRIPE_KEY); This is the error:- This expression is not callable. Type 'typeof import("stripe")' has no call signatures.

2. const { products } = ctx.request.body; This is the error:- Property 'body' does not exist on type 'Request'.

DarkHarsh commented 5 months ago

same error as @avinashmaurya86 is getting ,can anyone help?!!!