vue-loader has been installed, rules, has been added to webpack.config.js, or an error has been reported
.app.vue
<script>
import canlendarPrograma from "./calendar/canlendarPrograma"
export default {
components : {
canlendarPrograma,
},
data(){
return {
}
}
}
</script>
<style>
</style>
webpack.config.js
module: {
rules: [
{
test: /\.js$/,
exclude: [
path.resolve(__dirname, "node_modules")
],
loader: "babel-loader",
options: {
presets: ["es2015"],
plugins : ["transform-object-rest-spread"]
}
},
{
test: /\.vue$/,
loader: "vue-loader",
options: {
loaders: {
scss: "vue-style-loader!css-loader!sass-loader", // <style lang="scss">
sass: "vue-style-loader!css-loader!sass-loader?indentedSyntax" // <style lang="sass">
},
extractCSS: true
}
}
]
},