-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SourceMaps in Windows do not display correctly #12986
Comments
I did reproduce it locally, will investigate |
This issue doesn't seem sass/scss specific - it also happen with vanilla css, so I this seems either css-loader or style-loader (or our configuration for them) |
Seems like this is exactly this problem - webpack-contrib/postcss-loader#390 |
Yeah I think you are right, Seems this issue has not been fixed yet, is the best way to remove postcss loader? However, I'm not finding it easy to see what the default Webpack config for Gatsby is to modify it. |
It's not easy to remove it and it might break your site but you can find more info on how to replace your webpack config |
@andyfinch333 The problem is ... that That being said - we are on |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks again for being part of the Gatsby community! |
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
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
The text was updated successfully, but these errors were encountered: