Skip to content

Error link location when setting sourceMap as true in css-loader #158

@chuckWu1989

Description

@chuckWu1989

I faced a strange problem... Please checkout my testing repo:
[Repo] (https://github.com/d9767192/react-diagrams).
In this repo, I simplified all settings and compiled program by webpack-dev-server.
In the webpack settings, I only used style-loader and babel loader as plugins.
In the setting of babelrc the preset of env and react were used.
About the program, I tried the simple case (two node, one link)

When I ran the program, I got this result:
default

Then, I tried to set sourceMap in css-loader as false, The result is perfect:
2

Finally I found an issue in css-loader repo seems match my problem:
webpack-contrib/css-loader#613

I'm not sure if it is the reason. Now I can do is to remove the sourceMap in my project. But it's wierd! Is there any other solution?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions