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

DevTools failed to load SourceMap from @apollo/client #6921

Closed
a-x- opened this issue Aug 27, 2020 · 22 comments
Closed

DevTools failed to load SourceMap from @apollo/client #6921

a-x- opened this issue Aug 27, 2020 · 22 comments

Comments

@a-x-
Copy link

a-x- commented Aug 27, 2020

DevTools failed to load SourceMap: Could not load content for 
webpack:///node_modules/@apollo/client/utilities/observables/Observable.js.map: HTTP error: status code 404, 
net::ERR_UNKNOWN_URL_SCHEME

Intended outcome:
I just added the apollo/client to my Webpack/TS/React project and now I have a tons of warnings in my devtools.
I can use some hack to ignore them, but you might wants to know about this inconvenience.

I also added 'source-map-loader', and now warnings had change:

./node_modules/@apollo/client/version.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/ruafjxn/rayf/custody-rbo-widget/node_modules/@apollo/src/version.ts' file: Error: ENOENT: no such file or directory, open '/Users/ruafjxn/rayf/custody-rbo-widget/node_modules/@apollo/src/version.ts'

Actual outcome:
There is not any warnings.

How to reproduce the issue:
Just import apollo/client and run a project with webpack. I use webpack@4

Versions
npx envinfo@latest --preset apollo --clipboard

  System:
    OS: macOS 10.15.6
  Binaries:
    Node: 10.19.0 - ~/.nvm/versions/node/v10.19.0/bin/node
    Yarn: 1.22.0 - /usr/local/bin/yarn
    npm: 6.14.7 - ~/.nvm/versions/node/v10.19.0/bin/npm
  Browsers:
    Chrome: 84.0.4147.89
  npmPackages:
    @apollo/client: ^3.1.3 => 3.1.3 
@a-x-
Copy link
Author

a-x- commented Aug 27, 2020

image

@bennypowers
Copy link
Contributor

bennypowers commented Sep 9, 2020

The fix for this is easy - just include typescript sources in package.json files field.

EDIT: I see now that tsc outputs to dist. perhaps the postbuild should be amended to copy over the source files to dist

@ryan-zheng-teki
Copy link

@bennypowers Do you mean to include the files in the apollo-client package.json and repackage the apollo-client or in our own package.json?

@bennypowers
Copy link
Contributor

bennypowers commented Sep 22, 2020

@ryan-zheng-teki yes, I'm suggesting to ship the typescript source files in the npm package tarball, or alternatively, to ship inline source map comments.

edit: what I mean is that apollo-client should do this. If you want to, you can fork and rebuild locally, I suppose

@Billy-
Copy link

Billy- commented Oct 1, 2020

ship the typescript source files in the npm package tarball

I thougt I'd try this out: main...Billy-:fix-ts-sourcemaps

But unfortunately getting a lot of typescript errors in my build when I used the linked package.. 🙁

Webpack / TypeScript Error Details
ERROR in /<local-linked-module>/apollo-client/dist/link/core/ApolloLink.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/link/core/ApolloLink.ts(138,5)
      TS6133: 'operation' is declared but its value is never read.

ERROR in /<local-linked-module>/apollo-client/dist/link/core/ApolloLink.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/link/core/ApolloLink.ts(139,5)
      TS6133: 'forward' is declared but its value is never read.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/storeUtils.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/storeUtils.ts(259,4)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts(122,9)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts(175,9)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts(370,9)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts(393,9)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/graphql/transform.ts(496,9)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/utilities/common/filterInPlace.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/utilities/common/filterInPlace.ts(8,19)
      TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

ERROR in /<local-linked-module>/apollo-client/dist/cache/core/cache.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/core/cache.ts(82,19)
      TS6133: 'object' is declared but its value is never read.

ERROR in /<local-linked-module>/apollo-client/dist/cache/core/cache.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/core/cache.ts(90,17)
      TS6133: 'options' is declared but its value is never read.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/policies.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/policies.ts(193,40)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/policies.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/policies.ts(442,6)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/policies.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/policies.ts(453,6)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/entityStore.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/entityStore.ts(377,45)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/inMemoryCache.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/inMemoryCache.ts(335,19)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/readFromStore.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/readFromStore.ts(171,5)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/readFromStore.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/cache/inmemory/readFromStore.ts(346,5)
      TS7030: Not all code paths return a value.

ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts(208,12)
      TS2790: The operand of a 'delete' operator must be optional.

ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts(209,12)
      TS2790: The operand of a 'delete' operator must be optional.

ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts(210,12)
      TS2790: The operand of a 'delete' operator must be optional.

ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/core/ObservableQuery.ts(502,14)
      TS2790: The operand of a 'delete' operator must be optional.

ERROR in /<local-linked-module>/apollo-client/dist/core/QueryInfo.ts
[tsl] ERROR in /<local-linked-module>/apollo-client/dist/core/QueryInfo.ts(225,12)
      TS2790: The operand of a 'delete' operator must be optional.

@bennypowers
Copy link
Contributor

@Billy- do you exclude node_modules in tsconfig?

@Billy-
Copy link

Billy- commented Oct 1, 2020

Yes, I have

    "node_modules",
    "**/node_modules/*",

in my tsconfig

@Billy-
Copy link

Billy- commented Oct 1, 2020

I have made a minimal reproduction in a repo: https://github.com/Billy-/apollo-client-test

This also includes another problem, which I am going to create an issue for soon.

git clone git@github.com:Billy-/apollo-client-test.git
npm i
npm run dev

@silnose
Copy link

silnose commented Oct 6, 2020

DevTools failed to load SourceMap: Could not load content for 
webpack:///node_modules/@apollo/client/utilities/observables/Observable.js.map: HTTP error: status code 404, 
net::ERR_UNKNOWN_URL_SCHEME

Intended outcome:
I just added the apollo/client to my Webpack/TS/React project and now I have a tons of warnings in my devtools.
I can use some hack to ignore them, but you might wants to know about this inconvenience.

I also added 'source-map-loader', and now warnings had change:

./node_modules/@apollo/client/version.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/ruafjxn/rayf/custody-rbo-widget/node_modules/@apollo/src/version.ts' file: Error: ENOENT: no such file or directory, open '/Users/ruafjxn/rayf/custody-rbo-widget/node_modules/@apollo/src/version.ts'

Actual outcome:
There is not any warnings.

How to reproduce the issue:
Just import apollo/client and run a project with webpack. I use webpack@4

Versions
npx envinfo@latest --preset apollo --clipboard

  System:
    OS: macOS 10.15.6
  Binaries:
    Node: 10.19.0 - ~/.nvm/versions/node/v10.19.0/bin/node
    Yarn: 1.22.0 - /usr/local/bin/yarn
    npm: 6.14.7 - ~/.nvm/versions/node/v10.19.0/bin/npm
  Browsers:
    Chrome: 84.0.4147.89
  npmPackages:
    @apollo/client: ^3.1.3 => 3.1.3 

Check this reply ----> #6651

@uniqname
Copy link

@silnose that will quiet the warnings in Chrome but doesn't solve the issue. For instance I'm getting these warnings in Webpack builds. The problem seems to be that the sourceMap graph is pointing to locations that simply don't exist. Probably a mismatch between the src file structure and the build file structure as @bennypowers suggested.

@MarcusRiemer
Copy link

I have the same problem with Apollo Angular, so this doesn't seem to be related to React:

  System:
    OS: Linux 5.8 Arch Linux
  Binaries:
    Node: 14.13.1 - /usr/bin/node
    npm: 6.14.7 - /usr/bin/npm
  Browsers:
    Firefox: 81.0.2
  npmPackages:
    @apollo/client: ^3.2.4 => 3.2.4 
    apollo-angular: ^2.0.4 => 2.0.4 

@stephenlautier
Copy link

stephenlautier commented Nov 3, 2020

Any solutions to this yet?
Its very spammy as it has a lot of files, so its a bit frustrating

@CHOYSEN
Copy link

CHOYSEN commented Nov 12, 2020

@benjamn

@julkue
Copy link

julkue commented Nov 12, 2020

I have the same problem after just updating to Angular v11 when running $ ng extract-i18n:

Warning: ./node_modules/@apollo/client/cache/core/cache.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\core\cache.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fr
ontend\app\node_modules\@apollo\src\cache\core\cache.ts'

Warning: ./node_modules/@apollo/client/cache/core/types/Cache.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\core\types\Cache.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando
-cx-frontend\app\node_modules\@apollo\src\cache\core\types\Cache.ts'

Warning: ./node_modules/@apollo/client/cache/core/types/common.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\core\types\common.ts' file: Error: ENOENT: no such file or directory, open 'P:\cand
o-cx-frontend\app\node_modules\@apollo\src\cache\core\types\common.ts'

Warning: ./node_modules/@apollo/client/cache/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fronten
d\app\node_modules\@apollo\src\cache\index.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/entityStore.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\entityStore.ts' file: Error: ENOENT: no such file or directory, open 'P:\c
ando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\entityStore.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/fixPolyfills.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\fixPolyfills.ts' file: Error: ENOENT: no such file or directory, open 'P:\
cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\fixPolyfills.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/helpers.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\helpers.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando
-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\helpers.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\inMemoryCache.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\inMemoryCache.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/policies.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\policies.ts' file: Error: ENOENT: no such file or directory, open 'P:\cand
o-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\policies.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/reactiveVars.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\reactiveVars.ts' file: Error: ENOENT: no such file or directory, open 'P:\
cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\reactiveVars.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/readFromStore.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\readFromStore.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\readFromStore.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/types.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\types.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-c
x-frontend\app\node_modules\@apollo\src\cache\inmemory\types.ts'

Warning: ./node_modules/@apollo/client/cache/inmemory/writeToStore.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\writeToStore.ts' file: Error: ENOENT: no such file or directory, open 'P:\
cando-cx-frontend\app\node_modules\@apollo\src\cache\inmemory\writeToStore.ts'

Warning: ./node_modules/@apollo/client/core/ApolloClient.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\ApolloClient.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-f
rontend\app\node_modules\@apollo\src\core\ApolloClient.ts'

Warning: ./node_modules/@apollo/client/core/LocalState.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\LocalState.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\core\LocalState.ts'

Warning: ./node_modules/@apollo/client/core/MutationStore.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\MutationStore.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-
frontend\app\node_modules\@apollo\src\core\MutationStore.ts'

Warning: ./node_modules/@apollo/client/core/ObservableQuery.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\ObservableQuery.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-c
x-frontend\app\node_modules\@apollo\src\core\ObservableQuery.ts'

Warning: ./node_modules/@apollo/client/core/QueryInfo.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\QueryInfo.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fron
tend\app\node_modules\@apollo\src\core\QueryInfo.ts'

Warning: ./node_modules/@apollo/client/core/QueryManager.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\QueryManager.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-f
rontend\app\node_modules\@apollo\src\core\QueryManager.ts'

Warning: ./node_modules/@apollo/client/core/Reobserver.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\Reobserver.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\core\Reobserver.ts'

Warning: ./node_modules/@apollo/client/core/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-frontend
\app\node_modules\@apollo\src\core\index.ts'

Warning: ./node_modules/@apollo/client/core/networkStatus.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\networkStatus.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-
frontend\app\node_modules\@apollo\src\core\networkStatus.ts'

Warning: ./node_modules/@apollo/client/core/types.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\core\types.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-frontend
\app\node_modules\@apollo\src\core\types.ts'

Warning: ./node_modules/@apollo/client/errors/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\errors\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fronte
nd\app\node_modules\@apollo\src\errors\index.ts'

Warning: ./node_modules/@apollo/client/link/batch/batchLink.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\batch\batchLink.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-c
x-frontend\app\node_modules\@apollo\src\link\batch\batchLink.ts'

Warning: ./node_modules/@apollo/client/link/batch/batching.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\batch\batching.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx
-frontend\app\node_modules\@apollo\src\link\batch\batching.ts'

Warning: ./node_modules/@apollo/client/link/batch/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\batch\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fr
ontend\app\node_modules\@apollo\src\link\batch\index.ts'

Warning: ./node_modules/@apollo/client/link/context/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\context\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-
frontend\app\node_modules\@apollo\src\link\context\index.ts'

Warning: ./node_modules/@apollo/client/link/core/ApolloLink.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\ApolloLink.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-c
x-frontend\app\node_modules\@apollo\src\link\core\ApolloLink.ts'

Warning: ./node_modules/@apollo/client/link/core/concat.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\concat.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fr
ontend\app\node_modules\@apollo\src\link\core\concat.ts'

Warning: ./node_modules/@apollo/client/link/core/empty.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\empty.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\link\core\empty.ts'

Warning: ./node_modules/@apollo/client/link/core/execute.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\execute.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-f
rontend\app\node_modules\@apollo\src\link\core\execute.ts'

Warning: ./node_modules/@apollo/client/link/core/from.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\from.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fron
tend\app\node_modules\@apollo\src\link\core\from.ts'

Warning: ./node_modules/@apollo/client/link/core/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\link\core\index.ts'

Warning: ./node_modules/@apollo/client/link/core/split.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\split.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\link\core\split.ts'

Warning: ./node_modules/@apollo/client/link/core/types.js
[93mModule Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\core\types.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\link\core\types.ts'

Warning: ./node_modules/@apollo/client/link/error/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\error\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fr
ontend\app\node_modules\@apollo\src\link\error\index.ts'

Warning: ./node_modules/@apollo/client/link/http/HttpLink.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\HttpLink.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-
frontend\app\node_modules\@apollo\src\link\http\HttpLink.ts'

Warning: ./node_modules/@apollo/client/link/http/checkFetcher.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\checkFetcher.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando
-cx-frontend\app\node_modules\@apollo\src\link\http\checkFetcher.ts'

Warning: ./node_modules/@apollo/client/link/http/createHttpLink.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\createHttpLink.ts' file: Error: ENOENT: no such file or directory, open 'P:\can
do-cx-frontend\app\node_modules\@apollo\src\link\http\createHttpLink.ts'

Warning: ./node_modules/@apollo/client/link/http/createSignalIfSupported.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\createSignalIfSupported.ts' file: Error: ENOENT: no such file or directory, ope
n 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\createSignalIfSupported.ts'

Warning: ./node_modules/@apollo/client/link/http/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\link\http\index.ts'

Warning: ./node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\parseAndCheckHttpResponse.ts' file: Error: ENOENT: no such file or directory, o
pen 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\parseAndCheckHttpResponse.ts'

Warning: ./node_modules/@apollo/client/link/http/rewriteURIForGET.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\rewriteURIForGET.ts' file: Error: ENOENT: no such file or directory, open 'P:\c
ando-cx-frontend\app\node_modules\@apollo\src\link\http\rewriteURIForGET.ts'

Warning: ./node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\selectHttpOptionsAndBody.ts' file: Error: ENOENT: no such file or directory, op
en 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\selectHttpOptionsAndBody.ts'

Warning: ./node_modules/@apollo/client/link/http/selectURI.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\selectURI.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx
-frontend\app\node_modules\@apollo\src\link\http\selectURI.ts'

Warning: ./node_modules/@apollo/client/link/http/serializeFetchParameter.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\serializeFetchParameter.ts' file: Error: ENOENT: no such file or directory, ope
n 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\http\serializeFetchParameter.ts'

Warning: ./node_modules/@apollo/client/link/utils/createOperation.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\createOperation.ts' file: Error: ENOENT: no such file or directory, open 'P:\c
ando-cx-frontend\app\node_modules\@apollo\src\link\utils\createOperation.ts'

Warning: ./node_modules/@apollo/client/link/utils/fromError.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\fromError.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-c
x-frontend\app\node_modules\@apollo\src\link\utils\fromError.ts'

Warning: ./node_modules/@apollo/client/link/utils/fromPromise.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\fromPromise.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando
-cx-frontend\app\node_modules\@apollo\src\link\utils\fromPromise.ts'

Warning: ./node_modules/@apollo/client/link/utils/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fr
ontend\app\node_modules\@apollo\src\link\utils\index.ts'

Warning: ./node_modules/@apollo/client/link/utils/throwServerError.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\throwServerError.ts' file: Error: ENOENT: no such file or directory, open 'P:\
cando-cx-frontend\app\node_modules\@apollo\src\link\utils\throwServerError.ts'

Warning: ./node_modules/@apollo/client/link/utils/toPromise.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\toPromise.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-c
x-frontend\app\node_modules\@apollo\src\link\utils\toPromise.ts'

Warning: ./node_modules/@apollo/client/link/utils/transformOperation.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\transformOperation.ts' file: Error: ENOENT: no such file or directory, open 'P
:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\transformOperation.ts'

Warning: ./node_modules/@apollo/client/link/utils/validateOperation.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\validateOperation.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\link\utils\validateOperation.ts'

Warning: ./node_modules/@apollo/client/utilities/common/arrays.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\arrays.ts' file: Error: ENOENT: no such file or directory, open 'P:\cand
o-cx-frontend\app\node_modules\@apollo\src\utilities\common\arrays.ts'

Warning: ./node_modules/@apollo/client/utilities/common/canUse.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\canUse.ts' file: Error: ENOENT: no such file or directory, open 'P:\cand
o-cx-frontend\app\node_modules\@apollo\src\utilities\common\canUse.ts'

Warning: ./node_modules/@apollo/client/utilities/common/cloneDeep.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\cloneDeep.ts' file: Error: ENOENT: no such file or directory, open 'P:\c
ando-cx-frontend\app\node_modules\@apollo\src\utilities\common\cloneDeep.ts'

Warning: ./node_modules/@apollo/client/utilities/common/compact.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\compact.ts' file: Error: ENOENT: no such file or directory, open 'P:\can
do-cx-frontend\app\node_modules\@apollo\src\utilities\common\compact.ts'

Warning: ./node_modules/@apollo/client/utilities/common/environment.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\environment.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\environment.ts'

Warning: ./node_modules/@apollo/client/utilities/common/errorHandling.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\errorHandling.ts' file: Error: ENOENT: no such file or directory, open '
P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\errorHandling.ts'

Warning: ./node_modules/@apollo/client/utilities/common/filterInPlace.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\filterInPlace.ts' file: Error: ENOENT: no such file or directory, open '
P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\filterInPlace.ts'

Warning: ./node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\maybeDeepFreeze.ts' file: Error: ENOENT: no such file or directory, open
 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\maybeDeepFreeze.ts'

Warning: ./node_modules/@apollo/client/utilities/common/mergeDeep.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\common\mergeDeep.ts' file: Error: ENOENT: no such file or directory, open 'P:\c
ando-cx-frontend\app\node_modules\@apollo\src\utilities\common\mergeDeep.ts'

Warning: ./node_modules/@apollo/client/utilities/graphql/directives.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\directives.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\directives.ts'

Warning: ./node_modules/@apollo/client/utilities/graphql/fragments.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\fragments.ts' file: Error: ENOENT: no such file or directory, open 'P:\
cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\fragments.ts'

Warning: ./node_modules/@apollo/client/utilities/graphql/getFromAST.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\getFromAST.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\getFromAST.ts'

Warning: ./node_modules/@apollo/client/utilities/graphql/storeUtils.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\storeUtils.ts' file: Error: ENOENT: no such file or directory, open 'P:
\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\storeUtils.ts'

Warning: ./node_modules/@apollo/client/utilities/graphql/transform.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\transform.ts' file: Error: ENOENT: no such file or directory, open 'P:\
cando-cx-frontend\app\node_modules\@apollo\src\utilities\graphql\transform.ts'

Warning: ./node_modules/@apollo/client/utilities/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\index.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-fro
ntend\app\node_modules\@apollo\src\utilities\index.ts'

Warning: ./node_modules/@apollo/client/utilities/observables/Concast.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\Concast.ts' file: Error: ENOENT: no such file or directory, open 'P
:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\Concast.ts'

Warning: ./node_modules/@apollo/client/utilities/observables/Observable.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\Observable.ts' file: Error: ENOENT: no such file or directory, open
 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\Observable.ts'

Warning: ./node_modules/@apollo/client/utilities/observables/asyncMap.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\asyncMap.ts' file: Error: ENOENT: no such file or directory, open '
P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\asyncMap.ts'

Warning: ./node_modules/@apollo/client/utilities/observables/iteration.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\iteration.ts' file: Error: ENOENT: no such file or directory, open
'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\observables\iteration.ts'

Warning: ./node_modules/@apollo/client/utilities/policies/pagination.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\policies\pagination.ts' file: Error: ENOENT: no such file or directory, open 'P
:\cando-cx-frontend\app\node_modules\@apollo\src\utilities\policies\pagination.ts'

Warning: ./node_modules/@apollo/client/version.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'P:\cando-cx-frontend\app\node_modules\@apollo\src\version.ts' file: Error: ENOENT: no such file or directory, open 'P:\cando-cx-frontend\ap
p\node_modules\@apollo\src\version.ts'

@hwillson
Copy link
Member

hwillson commented May 7, 2021

Let us know if this is still a concern with @apollo/client@latest - thanks!

@hwillson hwillson closed this as completed May 7, 2021
@Billy-
Copy link

Billy- commented Jun 22, 2021

@hwillson I am on v3.3.20 and still getting one sourcemap error:

WARNING in ../node_modules/graphql-tag/lib/index.js
Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/runner/work/apollo-client-test/apollo-client-test/node_modules/graphql-tag/src/index.ts' file: Error: ENOENT: no such file or directory, open '/home/runner/work/apollo-client-test/apollo-client-test/node_modules/graphql-tag/src/index.ts'
 @ ../node_modules/@apollo/client/core/index.js 15:0-159 15:0-159 15:0-159 15:0-159 15:0-159 15:0-159
 @ ../node_modules/@apollo/client/index.js 1:0-32 1:0-32
 @ ./App.tsx 7:15-40
 @ ./index.tsx 8:28-42

I have update my minimal repro repo and it's reflected there too: https://github.com/Billy-/apollo-client-test/runs/2883996403?check_suite_focus=true

@erichiller
Copy link

erichiller commented Jun 24, 2021

Hi @hwillson , I'm encountering the same as @Billy-

WARNING in ../node_modules/graphql-tag/lib/index.js
Module Warning (from ../node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'node_modules\graphql-tag\src\index.ts' file: Error: ENOENT: no such file or directory, open 'node_modules\graphql-tag\src\index.ts'
 @ ../node_modules/@apollo/client/core/index.js 15:0-159 15:0-159 15:0-159 15:0-159 15:0-159 15:0-159
 @ ./src/Apollo.tsx 1:0-76 26:18-31 27:17-25 33:32-44
 @ ./src/App.tsx 7:0-49 12:54-66 13:51-58
 @ ./src/index.tsx 4:0-24 5:27-30

@benjamn
Copy link
Member

benjamn commented Jun 25, 2021

@Billy- @erichiller Since the problem seems to be coming from graphql-tag, you may be interested to know that graphql-tag@2.12.5 was just published, with apollographql/graphql-tag#403 included.

@erichiller
Copy link

@benjamn - That fixed it! Thanks for letting me know .

@richardscarrott
Copy link
Contributor

richardscarrott commented Jan 20, 2022

We've just upgraded from AC2 -> 3 (finally!) and we're seeing this still. It seems to happen for apollo-client and 1 or 2 others, but is most noticeable for AC as there are so many modules 🤔

We're using eval source maps.

Screenshot 2022-01-20 at 17 29 00

@benjamn
Copy link
Member

benjamn commented Jan 31, 2022

@richardscarrott Apollo Client doesn't use webpack for any part of our build, so I don't think we're responsible for those webpack:///node_modules/... URLs that the browser is complaining about. You might want to open an issue over at https://github.com/apollographql/apollo-client-devtools/ if this seems devtools-specific.

@xREACTABLEx
Copy link

We've just upgraded from AC2 -> 3 (finally!) and we're seeing this still. It seems to happen for apollo-client and 1 or 2 others, but is most noticeable for AC as there are so many modules 🤔

We're using eval source maps.

Screenshot 2022-01-20 at 17 29 00

@richardscarrott I am having the same issue, any luck figuring this out?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests