Skip to content

[1.9] External template not registering components anymore #250

@Tofandel

Description

@Tofandel

I import external templates like

<template src="./templates/TextTemplate.html"></template>

Which contains

<v-text-field type="text"
              :label="translatedLabel"
              v-model="vModel"
              v-bind="bind" v-on="listeners">
    <!-- Pass on all named slots -->
    <slot v-for="slot in Object.keys($slots)" :name="slot" :slot="slot"></slot>

    <!-- Pass on all scoped slots -->
    <template v-for="slot in Object.keys($scopedSlots)" :slot="slot" slot-scope="scope">
        <slot :name="slot" v-bind="scope"></slot>
    </template>
</v-text-field>

In 1.8 it worked properly, in 1.9 it doesn't resolve the v-text-field component and just outputs it as is

If I use the template directly, it works correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions