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

Error when importing a third party .scss file as a global with Error "Missing whitespace before :global" #430

Open
mickeypuri opened this issue Sep 24, 2022 · 1 comment

Comments

@mickeypuri
Copy link

Our custom component wraps a third party Carousel. We'd like to incorporate the third party css into the module but need to mark it as global.

I have used the following in the .scss file

:global {
   @import 'node_modules/swiper/swiper.scss';
   @import 'node_modules/swiper/modules/pagination/pagination.scss';
}

this is the correct syntax, but it errors with "Missing whitespace before :global "

image

Any thoughts on how to fix this?

@itayavra
Copy link

Hey, did you ever find a solution?

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