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

Unable to import scss in global scope #363

Closed
silviujingoi opened this issue Sep 13, 2019 · 1 comment
Closed

Unable to import scss in global scope #363

silviujingoi opened this issue Sep 13, 2019 · 1 comment

Comments

@silviujingoi
Copy link

I'm trying to import the scss module globally

:global {
  @import '~@momentum-ui/core/scss/momentum-ui';
}

But I'm getting the following error:

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: Missing whitespace before :global

@pauljeter
Copy link
Contributor

I believe this is a sass loader issue. Try escaping using \:global syntax.

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