Closed afbora closed 3 years ago
Are you using a bundler?
I guess, using parcel
: parcel build src/index.js --no-source-maps --experimental-scope-hoisting -d ./
Inline template codes template: '<template>...</template>'
working but as view not working template: View
Your setup is not correct.
It should look like this:
import View from "./components/View.vue";
panel.plugin('yourname/todos', {
components: {
'k-todos-view': View
}
})
<template>
<k-view class="k-todos-view">
<k-header>
Todos
</k-header>
</k-view>
</template>
<script>
export default {
props: {
todos: Array
}
};
</script>
Ohh, my incompetence 🙈 Thanks
Describe the bug
I'mi getting following error in console when i try to set template as view file
index.js
View.vue
Kirby Version
3.6.0-alpha.3