Skip to content
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

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

Open
brian-smith-tcril opened this issue Sep 16, 2022 · 1 comment

Comments

@brian-smith-tcril
Copy link
Contributor

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.

@hinakhadim
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants