rollup-plugin-postcss icon indicating copy to clipboard operation
rollup-plugin-postcss copied to clipboard

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

Open mickeypuri opened this issue 2 years ago • 1 comments

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?

mickeypuri avatar Sep 24 '22 12:09 mickeypuri

Hey, did you ever find a solution?

itayavra avatar Feb 13 '24 17:02 itayavra