When I use I use the <inertia-link>
the test.vue
child component does not render but it renders if I remove those tags. Any ideas as to what I am doing wrong?
test.vue
<template>
<div>
<div class="p-6 sm:px-20 bg-white border-b border-gray-200">
<div>
<b-logo class="block h-12 w-auto" />
</div>
<div class="mt-1 text-2xl">
{{ $page.user.first_name }} {{ $page.user.last_name }}
</div>
<inertia-link :href="#">
test-link
</inertia-link>
</div>
</div>
</template>
<script>
import BLogo from './BLogo'
export default {
components: {
BLogo,
},
}
</script>
This component is used in another .vue file with <my-test />
This is being done in laravel 8. Also, I have noticed that if I use the <inertia-link>
tag in the parent vue then it shows up. So the tag works.
(and I think it is used by the default Jetstream profile pages).
inertia-link
globally registered? Any console errors? – tony19#
which likely throws a syntax error. You should see an error in the dev console saying something similar. – Robert Nubel:href="#"
(which is not a valid binding), there are likely other errors that are lost to you. I'd try to resolve the log issue first, as the console log is a vital troubleshooting tool. – tony19