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

Typescript: failed to parse source map #49

Open
matheusgoc opened this issue Jul 24, 2023 · 0 comments
Open

Typescript: failed to parse source map #49

matheusgoc opened this issue Jul 24, 2023 · 0 comments

Comments

@matheusgoc
Copy link

matheusgoc commented Jul 24, 2023

I'm getting this annoying warning when compiling from React Typescript:

Compiled with warnings.

Failed to parse source map from '.../node_modules/simple-crypto-js/src/SimpleCrypto.ts' file: Error: ENOENT: no such file or directory, open '.../node_modules/simple-crypto-js/src/SimpleCrypto.ts'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ./node_modules/simple-crypto-js/lib/SimpleCrypto.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '.../node_modules/simple-crypto-js/src/SimpleCrypto.ts' file: Error: ENOENT: no such file or directory, open '.../node_modules/simple-crypto-js/src/SimpleCrypto.ts'

There is a source map for JS file. My best guess is that the source map file for SimpleCrypto.ts TS file is missing.

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

1 participant