Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory #15

Closed
semihraifgurel opened this issue Apr 20, 2023 · 16 comments
Closed

ENOENT: no such file or directory #15

semihraifgurel opened this issue Apr 20, 2023 · 16 comments

Comments

@semihraifgurel
Copy link

semihraifgurel commented Apr 20, 2023

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
Copy link
Author

Does anyone else have this problem?

@felquis
Copy link
Owner

felquis commented Apr 25, 2023

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

@semihraifgurel
Copy link
Author

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

@felquis
Copy link
Owner

felquis commented Apr 25, 2023

@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
Copy link
Author

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

@numnes
Copy link

numnes commented May 3, 2023

Any update? I have the same problem

@semihraifgurel
Copy link
Author

@felquis is there any update?

@michaelvilarino
Copy link

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

@semihraifgurel
Copy link
Author

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

@felquis
Copy link
Owner

felquis commented Sep 15, 2023

Hey @semihraifgurel I'm around, Thank you for this link #15 (comment)

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
Copy link

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

@jayademola
Copy link

Still facing the issue

@Johnne25
Copy link

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

@kevin-kuhn
Copy link

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

@felquis
Copy link
Owner

felquis commented Aug 29, 2024

@kevin-kuhn can you try [email protected] and let me know if this error still happens?

@felquis
Copy link
Owner

felquis commented Aug 29, 2024

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 [email protected] or higher, please reopen it. Check the releases pages for more info https://github.com/felquis/react-credit-cards-2/releases

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants