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

Nuxt 应用,[Vue warn]: Failed to mount component: template or render function not defined. #68

Open
JaysonZou opened this issue Jun 12, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@JaysonZou
Copy link

<template>
  <waterfall33 class="lesson" :col='3' :width="428" :gutterWidth="10"  :data="images">
    <template>
      <div class="stu-video" v-for="(img) in images">
        <video :src="img.url" style="width: 428px; height: 500px"></video>
      </div>
    </template>
  </waterfall33>
</template>

<script>
  import waterfall33 from 'vue-waterfall2'

  export default {
    name: "Waterfall2",
    components: {waterfall33},
    props: ['images']
  }
</script>
@iplaycodex
Copy link

我在 nuxt 中是异步渲染的这个组件,服务端渲染没法渲染

@JaysonZou
Copy link
Author

我在 nuxt 中是异步渲染的这个组件,服务端渲染没法渲染

请教一下,nuxt如何异步渲染一个组件?是不是在nuxt.config.js里plugin-->ssr: false 这样搞?

@AwesomeDevin AwesomeDevin added the enhancement New feature or request label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants