According to this Github issue the above @apply is no longer global. For me replacing it with @reference worked perfectly.
@apply
@reference