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

Failed to parse source map error when used with create-react-app 5.x #311

Closed
lanwin opened this issue Jan 13, 2022 · 4 comments
Closed

Failed to parse source map error when used with create-react-app 5.x #311

lanwin opened this issue Jan 13, 2022 · 4 comments

Comments

@lanwin
Copy link

lanwin commented Jan 13, 2022

When the current 3.7.0 package is installed with create-react-app I got some warnings like that:

WARNING in ./node_modules/graphql-request/dist/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'node_modules\graphql-request\src\index.ts' file: Error: ENOENT: no such file or directory, open 'node_modules\graphql-request\src\index.ts'
 @ ./src/lib/backend.ts 9:0-48 23:17-30
 @ ./src/index.tsx 16:0-42 32:14-25

The warning is correct cause the included source map point to a source file witch is not included in the package.

I think it could be solved by removing all source maps from the release package or include the src files at the correct location.

@lanwin lanwin changed the title Failed to parse source map error when used with create-react-app 4.x Failed to parse source map error when used with create-react-app 5.x Jan 13, 2022
@andrei9669
Copy link

any progress on this?

@parkcoop
Copy link

Also having this issue, any updates?

@willstott101
Copy link
Contributor

Tritvial fix at #317

@buskerone
Copy link

Yup, I'm facing the same problem. I hope someone can review @willstott101 PR.

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

5 participants