Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

[webpack] DevTools failed to parse SourceMap Warning #285

Open
MalpenZibo opened this issue Apr 10, 2020 · 0 comments · May be fixed by #287
Open

[webpack] DevTools failed to parse SourceMap Warning #285

MalpenZibo opened this issue Apr 10, 2020 · 0 comments · May be fixed by #287
Assignees

Comments

@MalpenZibo
Copy link
Member

Description

There's a lot of warning regarding - DevTools failed to parse SourceMap: {sourcemap path}

image

Possible solution

This problem could be resolved configuring webpack with devtool: "eval-source-map".

Workaround

Configure webpack with devtool: "eval-source-map" locally. In a Bento like app this could be done by adding in Config.js a devTool: t.string config option.

example:

const t = require('io-ts');

module.exports = t.type(
  {
    bundle: t.type({
      STUFF
    }),
    devTool: t.string
  },
  'Config'
);

And in production.json/development.json/local.json set that option with `"devTool": "eval-source-map":

{
  "bundle": {
    STUFF
  },
  "devTool": "eval-source-map"
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant