Skip to content

Windows 10 MAX_PATH Problem in @import #2477

@Noxmox6

Description

@Noxmox6

Hi,
i have a Problem with libsass on Windows 10. I use node-sass and an Import with a long relative Path:

input.scss

@import "../../lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/lorem-ipsum-dolor-sit-ame/ExampleFile";

For example in absolute Path:
C:\MyProjects\parent\frontend\src\main\webapp\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\lorem-ipsum-dolor-sit-ame\_ExampleFile.scss

The absolute path is greater than 256 Characters und i get the error: "File to import not found or unreadable". If I move the file to a shorter path, the build is working. But in our project we can’t use short paths and we need to run it on windows.

I already have set the new „greater than 256 Chars max_path setting“ in windows and in different other use cases this setting is working. But it is not working on sass compiling. I have test the project on Linux too and there are no problems.

Is there any workaround or fix to run @imports with path length greater than 256 Chars on Windows 10?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions