Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Component is missing template or render function #138

Open
florianingerl opened this issue Aug 8, 2023 · 0 comments
Open

Error: Component is missing template or render function #138

florianingerl opened this issue Aug 8, 2023 · 0 comments

Comments

@florianingerl
Copy link

I try to use the tree-navigation-component.
I include it via the script tag at the end of the body in the html
`<script src="https://unpkg.com/vue@latest"></script>
<script src="https://unpkg.com/vue-tree-navigation@4.0.0/dist/vue-tree-navigation.js"></script>

<script src="assets/js/vue-app-uebung.js"></script>`

In vue-app.uebung.js, when I say
console.log(VueTreeNavigation.template)
it gives me undefined.

When I include the component somewhere, it give me the error Component is missing template or render functioin.

When I add the line
VueTreeNavigation.template = "<div>Hello, my name is Florian</div>
then the error disappears.

I am using Vue3. What do I do wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant