Skip to content

Having both css modules and scss in a SFC don't work #63

Closed
@ghost

Description

I've isolated an edge case when using css modules and scss generate a Comment where a HTMLDivElement is expected.

spec.js

const Constructor = Vue.extend(myComponent); const vm = new Constructor().$mount();

myComponent

This doesn't work

<template lang="pug">
  div( :class="$style.box" ) hello
</template>

<style module lang="scss">
.box {
  color: red;
}
</style>

This works

<template lang="pug">
  div( :class="$style.box" ) hello
</template>

<style module>
.box {
  color: red;
}
</style>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions