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

Webpack 5 complaining about missing source types #321

Closed
shapeshifta78 opened this issue Feb 5, 2022 · 3 comments
Closed

Webpack 5 complaining about missing source types #321

shapeshifta78 opened this issue Feb 5, 2022 · 3 comments

Comments

@shapeshifta78
Copy link

shapeshifta78 commented Feb 5, 2022

Hi, I just upgraded to webpack 5 and those warnings started to appear. Seems like there are some references to types of the src folder which is not included in the npm module. Any ideas how to prevent those? I've read that other packages may have similar issues with webpack 5.

`WARNING in ./node_modules/graphql-request/dist/types.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'E:\...\node_modules\graphql-request\src\types.ts' file: 
Error: ENOENT: no such file or directory, open 'E:\...\node_modules\graphql-request\src\types.ts'
 @ ./node_modules/graphql-request/dist/index.js 221:14-32
 @ ./src/config/graphql-client.js 3:0-53 4:33-46
 @ ./src/hooks/usePost.js 7:0-57 12:23-44
 @ ./src/components/Post/index.js 7:0-40 22:6-13 54:10-17
 @ ./src/components/Main/index.js 4:0-35 19:35-39
 @ ./src/config/routes.js 5:0-35 14:32-36
 @ ./src/components/App/index.js 7:0-35 26:20-30
 @ ./src/index.js 8:0-35 12:33-36
`
@andrei9669
Copy link

#311

@luizstacio
Copy link

@jasonkuhrt should this be also closed by #317?

@jasonkuhrt
Copy link
Owner

@luizstacio Maybe, is this still an issue?

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

4 participants