question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Double sass in path in map file

See original GitHub issue

Original post

Hi Guys, Could you help me a bit to understand why compiler generating wrong source path in map file?

I have nested folder with scss and different one for css. CSS files are generated fine and in proper place, but my map file contains wrong path inside.

Part of wrong map file style.css.map:

{"version":3,"sources":["../sass/sass/hold/style.scss","../sass/hold/style.scss","../sass/sass/bootstrap/mixins/_vendor-prefixes.scss","../sass/sass/bootstrap/_variables.scss"],"names":[],"mappings":.........}

I want to avoid this double /sass/sass/ in first path. Could you help me a bit?

Here is my structure: image

My settings:

    "liveSassCompile.settings.formats": [
        // This is the default.
        {
            "format": "expanded",
            "extensionName": ".css",
    
            // null for all three -> denotes the same path as the SASS file
            "savePath": "themes/hold/css/",
            "savePathSegmentKeys": null,
            "savePathReplaceSegmentsWith": null
        }

Tasks for 5.2 release

  • Find cause
  • Apply fix

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
glenn2223commented, Feb 21, 2022

Hey @DvdRom87,

Sorry for the delay. It has been a bit of a crazy couple of months - moving, new baby, work, uni studies - which has pushed these things to the back burner.

I was also waiting on #151 to confirm that the fix worked, this way I can push it in this release. But the change should fix the top-level problem and more work may be needed to address their other concerns, so I’ll push an official release tonight.

0reactions
DvdRom87commented, Feb 18, 2022

Hi, i just wanted to ask when the update is pushed? I really would like this issue to be fixed 😬

Thanks for the great work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maps - Sass
Maps in Sass hold pairs of keys and values, and make it easy to look up a value by ... Every map counts...
Read more >
sass compile css to multiple locations - Stack Overflow
I would like to make sass --watch compile the same sass into 2 identical css files in 2 separate locations. E.g sass --watch...
Read more >
Sourcemap sources have wrong paths · Issue #731 - GitHub
With the built-in command sass --update ./public/css/desktop , in sass, it creates the map files with the correct sources urls. Here is the...
Read more >
Sass, SCSS, and Less | PyCharm Documentation - JetBrains
As a result, two files are generated and shown nested under Page.scss: Page.css with compiled CSS code. Page.css.map with source maps that ...
Read more >
Sass · Bootstrap v5.0
Utilize our source Sass files to take advantage of variables, maps, mixins, ... You have two options: include all of Bootstrap, or pick...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found