piyushgarg-dev / react-razorpay

Integrate Razorpay payments in your React App
https://www.npmjs.com/package/react-razorpay
20 stars 4 forks source link

got warning while using react-razorpay in the project #5

Open Hxri72 opened 1 year ago

Hxri72 commented 1 year ago

Failed to parse source map from 'F:\Brototype\Week 18\Cineawe\client\node_modules\react-razorpay\src\index.ts' file: Error: ENOENT: no such file or directory, open 'F:\Brototype\Week 18\Cineawe\client\node_modules\react-razorpay\src\index.ts'

this was the warning showing in the vs code terminal. i reinstalled the npm package and the react-razorpay again but the issue persist so how can i get out from it?

Regards Hariprasad

harshiv49 commented 1 year ago

I am not sure if that is leading to a problem while using it tho since I ran into a similar error but if you really wanna get rid of the error you could change the folder structure by searching the particular node module react-razorpay in our case and change the dist folder to src and index.d.ts to index.ts

Madhu25666 commented 1 month ago

Very annoying warning...it takes up the entire console

After renaming the folder from dist to src and index.d.ts to index.ts.. should we add src in package.json or let it be as it is ?

"files": [ "dist/" ],

I tried renaming as harshiv49 suggested but warning persists.