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

Text/Image/Video mode - cannot set properties of undefined (setting 'innerHTML') #19

Open
mroddev opened this issue Feb 14, 2023 · 0 comments
Labels
bug Something isn't working needs more information

Comments

@mroddev
Copy link

mroddev commented Feb 14, 2023

Hi.

Getting a Uncaught TypeError: Cannot set properties of undefined (setting 'innerHTML') when using either of the Text, Image or Video mode.

I'm using it with Nuxt 3 and everything else seems to work fine.

This is how I'm setting it up.

CustomCursor.vue component:

<template>
  <div class="cursor mf-cursor -exclusion"
       ref="cursorRef"></div>
</template>

<script setup>
import MouseFollower from "mouse-follower";
import gsap from 'gsap';

MouseFollower.registerGSAP(gsap);

const cursorRef = ref()

onMounted(() => {
  const cursor = new MouseFollower({
    el: cursorRef.value,
    speed: 0.8,
    skewing: 3,
  });
})
</script>

Then the component above is loaded inside app.vue file.
I know you can't see the SCSS import, but they are being loaded on an internal file.

@Drafteed Drafteed added bug Something isn't working needs more information labels Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more information
Projects
None yet
Development

No branches or pull requests

2 participants