felquis / react-credit-cards-2

Beautiful credit cards for your payment forms - community edition ⚡️
https://ovvwzkzry9.codesandbox.io/
MIT License
62 stars 9 forks source link

ENOENT: no such file or directory #15

Closed semihraifgurel closed 1 month ago

semihraifgurel commented 1 year ago
WARNING in ./node_modules/react-credit-cards-2/dist/es/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/user/project/node_modules/react-credit-cards-2/src/ReactCreditCards.tsx' file: Error: ENOENT: no such file or directory, open '/Users/user/project/node_modules/react-credit-cards-2/src/ReactCreditCards.tsx'

WARNING in ./node_modules/react-credit-cards-2/dist/es/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/user/project/node_modules/react-credit-cards-2/src/utils/cardHelpers.ts' file: Error: ENOENT: no such file or directory, open '/Users/user/project/node_modules/react-credit-cards-2/src/utils/cardHelpers.ts'

WARNING in ./node_modules/react-credit-cards-2/dist/es/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/user/project/node_modules/react-credit-cards-2/src/utils/cardTypes.ts' file: Error: ENOENT: no such file or directory, open '/Users/user/project/node_modules/react-credit-cards-2/src/utils/cardTypes.ts'
semihraifgurel commented 1 year ago

Does anyone else have this problem?

felquis commented 1 year ago

Is it possible the released version didn't include the source map?

semihraifgurel commented 1 year ago

https://www.npmjs.com/package/react-credit-cards-2?activeTab=code You can check it out with the link.

felquis commented 1 year ago

@semihraifgurel thanks for the link, it helped.

Can you share your local environment details? Like, what's the build tool you are using.

We'll need to reproduce your problem in an isolated fashion, to make sure the fix will work before merging and releasing it.

semihraifgurel commented 1 year ago

You can test it here (https://github.com/omtanke/react-credit-cards-2-test). New and empty project created for this.

numnes commented 1 year ago

Any update? I have the same problem

semihraifgurel commented 1 year ago

@felquis is there any update?

michaelvilarino commented 1 year ago

Any fixes for this problem? I'm going through the same situation!

semihraifgurel commented 1 year ago

@felquis does not make any corrections @michaelvilarino. I am temporarily using version "0.10.0".

felquis commented 1 year ago

Hey @semihraifgurel I'm around, Thank you for this link https://github.com/felquis/react-credit-cards-2/issues/15#issuecomment-1521724546

Looks like your repo works, but it can't find sourcemaps. We should doublecheck we are shipping the lib with sourcemaps enabled and try again.

leineveber commented 9 months ago

still facing it, it's trying to find it inside "src" folder of library, but there is no "src"

image image
jayademola commented 7 months ago

Still facing the issue

Johnne25 commented 4 months ago

Although this doesn't seem to be effecting functionality is it possible to get a fix for this warning?

kevin-kuhn commented 1 month ago

Is there any fix for it? I'm also facing the issue

felquis commented 1 month ago

@kevin-kuhn can you try react-credit-cards-2@2.0.0-rc1 and let me know if this error still happens?

felquis commented 1 month ago

Oh well, it was not my intent to close this issue before I get the feedback from others.

Please if you still see this issue after updating to version react-credit-cards-2@2.0.0-rc1 or higher, please reopen it. Check the releases pages for more info https://github.com/felquis/react-credit-cards-2/releases

Thank you.