Skip to content

SourceMaps in Windows do not display correctly #12986

Closed
@andyfinch333

Description

@andyfinch333

Description

SCSS SourceMaps in any of the downloadable starter kits or in a fresh build of Gatsby, do not correctly show SCSS SourceMap references in the Web Inspector. In Firefox on Windows you see a Blob reference (Screenshot attached), In Chrome, you see an absolute path that repeats several times (screenshot attached), which while better as I can work out what file the code references, does not look great. I feel like a lot of people must have this issue as all the starter kits i've downloaded have this problem. This issue is present in Gatsby v1 and v2, it is not present in similar Static Generators such as Next.js, so I feel it's not an issue with Webpack.

The same build, when run on Linux, shows source map references correctly which leads me to believe this issue seems to be limited to Windows.

Steps to reproduce

  1. Clone repository - https://github.com/ueno-llc/ueno-gatsby-starter
  2. Follow instructions to install, launch gatsby develop.
  3. Use web inspector to view sourcemap location

Works with any repository from Starter Library or fresh build of Gatsby.

Expected result

Ideally, you will see scss source maps are compiled correctly and display correctly in All Browsers pointing only to a file with extension.

Actual result

You see scss source maps are compiled but in Firefox inspector you see a Blob Reference.
You see scss source maps are compiled but in Chrome inspector you see an absolute path 3x.
You see scss source maps are compiled correctly and display correctly in Chrome on Linux.

Environment

Gatsby 2.1.23
Windows 10

Run gatsby info --clipboard in your project directory and paste the output here.

Command not recognized.

Screenshots

gatsby-sm-firefox
gatsby-sm-chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale?Issue that may be closed soon due to the original author not responding any more.status: confirmedIssue with steps to reproduce the bug that’s been verified by at least one reviewer.type: bugAn issue or pull request relating to a bug in Gatsbytype: upstreamIssues outside of Gatsby's control, caused by dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions