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 in setup #5

Open
sillexo opened this issue Nov 7, 2024 · 0 comments
Open

Error in setup #5

sillexo opened this issue Nov 7, 2024 · 0 comments

Comments

@sillexo
Copy link

sillexo commented Nov 7, 2024

Hello! I'm use vue 2.7.16. I have error in browser:
Error in setup: "TypeError: Cannot read properties of undefined (reading '$asImageOptions')"

image

My component code

<template>
  <as-image
    class="demoimage"
    :width="1280"
    :height="640"
    :src="src"
  >
    <template #loading>
      <div class="loading" />
    </template>
  </as-image>
</template>

<script>
import AsImage from '@awesome-image/image'
import '@awesome-image/image/dist/style.css'

export default {
  components: {
    AsImage,
  },

  props: {
    src: {
      type: String,
      default: '',
      require: true,
    },
  },
}
</script>

How do I fix this?

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