Skip to content

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

Open

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.

Activity

  1. hinakhadim commented on Apr 15, 2024

    @hinakhadim

    It is because we arer importing .scss file from src folder locally. While the path entered in .scss file of MFE requires dist folder in header component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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