What is the error?
Jun 15, 2016
8
Level 6
Vue Component with SASS styling not compiling
I'm new to the world of Vue. I have a basic vue component setup based on the Laracast tutortial. However, I'm attempting to use sass in my component file and I keep getting a parsing error. If I use full blown css then it works fine, it's only when I use SASS it doesn't work.
Here's an example of what my .vue file looks like.
<template>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 search-result-container" v-for="hit in results.hits">
<!-- all my code is here and works fine -->
</div>
</template>
<script>
export default {
data() {
return {}
},
props: ['results'],
created(){...},
methods: {...},
components: {}
}
</script>
<style lang="sass">
.ResultBox__ViewMoreButton
background: rgba(146, 146, 146, 0.16)
</style>
I've also tried using "scss" as well. I have this line towards the top of my gulpfile
require('laravel-elixir-vueify');
Any ideas?
Please or to participate in this conversation.