Closed nezaboravi closed 1 year ago
Please let me know if i can provide more details to help you understand the issue.
Try replacing <template #heading><h1>Rules</h1></template>
with <div slot="header"><h1>Rules</h1></div>
Thank you I have tried that already before i posted her, and i got two headings. One, set default in AdminLayout, and second set in div slot=header. I have been looking both connected issues that already reported in issue tracker here on inertia.
Maybe having the slot outside the <main></main>
section matters.
<div>
<slot name="heading" />
</div>
<main>
<slot></slot> //your content
</main>
Maybe having the slot outside the
<main></main>
section matters.<div> <slot name="heading" /> </div> <main> <slot></slot> //your content </main>
Sorry, i don't think it matters, main is just a tag, and in no way shall define behaviour.
Hey! Thanks so much for your interest in Inertia.js and for sharing this issue/suggestion.
In an attempt to get on top of the issues and pull requests on this project I am going through all the older issues and PRs and closing them, as there's a decent chance that they have since been resolved or are simply not relevant any longer. My hope is that with a "clean slate" me and the other project maintainers will be able to better keep on top of issues and PRs moving forward.
Of course there's a chance that this issue is still relevant, and if that's the case feel free to simply submit a new issue. The only thing I ask is that you please include a super minimal reproduction of the issue as a Git repo. This makes it much easier for us to reproduce things on our end and ultimately fix it.
Really not trying to be dismissive here, I just need to find a way to get this project back into a state that I am able to maintain it. Hope that makes sense! ❤️
Version:
@inertiajs/vue3
version: "^1.0.0"Describe the problem:
I cant use named slots. Here is the code from app.js AdminLayout.vue and Rules.vue I am getting error:
[plugin:vite:vue] Codegen node is missing for element/if/for node. Apply appropriate transforms first.
Steps to reproduce:
app.js
AdminLayout.vue
Roles.vue