Skip to content

Property was accessed during render but is not defined on instance.  #10

@beshur

Description

@beshur

Hi.
I'm new to Vue.
Using the example code from readme the embed widget is empty and I get the following error in console:

[Vue warn]: Property "CZqTF006RWg" was accessed during render but is not defined on instance.

After adding app.use(YoutubeIframe), here is the view code:

<script setup lang="ts">
import { ref } from "vue";
const yt = ref(null);
const ready = ref(null)
</script>

<template>
  <main>
    <youtube-iframe
      ref="yt"
      :videoId="CZqTF006RWg"
      :playerWidth="600"
      :playerHeight="300"
      :noCookie="true"></youtube-iframe>
  </main>
</template>

Could you please help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions