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

Error reported under vue3.0 version #57

Open
YongHengFu opened this issue Mar 31, 2021 · 3 comments
Open

Error reported under vue3.0 version #57

YongHengFu opened this issue Mar 31, 2021 · 3 comments

Comments

@YongHengFu
Copy link

Error reported under vue3.0 version

@loading99
Copy link

What's your exact issue?
I do the following, but nothing shows on the web:

</script>
import  * as animationData from "../../../public/path/element14.json";
import Lottie from "lottie-web";
export default defineComponent({
  name:'CyberCity',
  setup(){
    return{
      defaultOptions:{animationData:animationData}
    }
  },
  components: {
    Navigation,
    'lottie':Lottie
  },
})
</script>

In template

  <div style="background-color:#000;
            margin: 0px;
            height: 100%;
            overflow: hidden;">
   <lottie :options="defaultOptions" :height="400" :width="400"/>
  </div>

But I got warnings:

runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Component is missing template or render function. 
  at <Lottie options= {animationData: Module} height=400 width=400 > 
  at <CyberCity onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <Anonymous prefixCls="ant-layout-content" hasSider=undefined tagName="main"  ... > 
  at <ALayoutContent style= {padding: "0 0px"} > 
  at <Anonymous prefixCls="ant-layout" hasSider=undefined tagName="section" > 
  at <ALayout> 
  at <App>

@Dids
Copy link

Dids commented Sep 22, 2021

Same here. Having trouble tracking this down, because this triggers on all pages, even on App.vue, which doesn't even use any custom components.

I did update a few dependencies, so this might be version specific or caused by a single incompatible dependency, will need to investigate further.

@camerondodds-sv
Copy link

I'm having the exact same problem. Have you found a solution?

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

4 participants