Skip to content

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

@a-x-

Description

@a-x-
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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions