Skip to content

SassError when importing as a part of localModules in module.config.jsΒ #259

@brian-smith-tcril

Description

@brian-smith-tcril

when importing this module locally by following the pattern from https://github.com/openedx/frontend-build#local-module-configuration-for-webpack, i encountered a sass import error

SassError: Can't find stylesheet to import.
[...]
@import '~@edx/frontend-component-header/dist/index';

after talking to @arbrandes, i learned this was a known issue, and that the current workaround is to modify the @import in the .scss file to point to the local directory instead of ~@edx/frontend-component-header/dist/index

while this workaround is useful, it'd be much better to figure out what's preventing this from working as intended.

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