DevTools failed to parse SourceMap

前端 未结 4 1790
悲&欢浪女
悲&欢浪女 2021-02-02 05:59

I am trying to get my Webpack project to have a source map file.

I finally got the settings right so that it would do that, but now I am getting this error:

4条回答
  •  清酒与你
    2021-02-02 06:44

    It is not an answer to this question, but i believe my answer can help some people.

    This is due to the settings of chrome, for example in FF this error warnings not happens. To fix it go to Developer Tools Settings of Chrome, and uncheck:

    1. "Enable JavaScript source maps"
    2. "Enable CSS source maps"

    Then refresh Chrome.

    In order to debug js and scss minified files, this tells the compiler where the source file is actually mapped.

    Using last versions of Webpack source-map work well, I tried to reproduce this bug, but without possibility to run a project, i can't see what a problem of author of a question.

    This warning happening for example using angular, and sourceMap should be set true in angular.json, or other way if you don't use source-map'ing' and you don't want see this warning disable it in browser following my answer.

提交回复
热议问题