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

WXMLRT_$gwx:./components/slots.wxml:template:22:30: Template xxxx not found. #289

Open
js5323 opened this issue Aug 8, 2019 · 0 comments

Comments

@js5323
Copy link

js5323 commented Aug 8, 2019

代码与复现步骤

vue组件1:app-wrap.vue

<template>
    <div class="app-wrap"><slot></slot></div>
<template>

vue组件2:comp.vue

<template>
    <div class="comp">comp</div>
<template>

页面: index.vue

<template>
    <app-wrap>
        <template v-if="info">{{info}}</template>
        <comp v-else></comp>
    </app-wrap>
</template>
<script>
import appWrap from './app-wrap'
import comp from './comp'
export default {
    data: (() => { info: null }),
    components: { comp, appWrap }
}
</script>

问题现象

开发者工具包找不到相关模板:WXMLRT_$gwx:./components/slots.wxml:template:22:30: Template comp$166ddb24 not found.

版本

using @megalo/[email protected]
using [email protected]

操作系统信息

MacOS Mojave 10.14.6

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