-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Steps to reproduce
- Pull
hello-vue-components
from GitHub - Run
npm install
- Update
src/HelloA.vue
(see changes below) - Run
npm run build
- View the output
./dist/demo.html
in the browser (Chrome) - Errors like the Dickens!!! (single error, screenshot below)
Change to the SFC
...
<!-- HelloA.vue -->
<script>
export default {
name: 'hello-a',
data() {
return {
name: 'HelloA',
}
},
}
</script>
...
Complete SFC
<!-- HelloA.vue -->
<template>
<div class="hello">
{{ name }}
</div>
</template>
<script>
export default {
name: 'hello-a',
data() {
return {
name: 'HelloA',
}
},
}
</script>
<style>
.hello {
color: orange;
}
</style>
<meta>
{
"description": "A component that says \"HelloA\" with orange text."
}
</meta>
<example>
<!-- No props or content are necessary. -->
<hello-a></hello-a>
</example>
tiagosimoesdev
Metadata
Metadata
Assignees
Labels
No labels