vueuse: Almost no composition APIs work, undefined imports

When trying this in a project based off of vitesse, I found that I was unable to use almost any composition APIs available. Most of them had an error like watch is not defined, or ref is not defined. After doing some digging, the offending line was found here

image

<script setup lang="ts">
import { useMouse } from '@vueuse/core'

const {xMouse, yMouse} = useMouse()
</script>
<template>
  <div />
</template>

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

Please try in combination with v-wave@beta (npm i v-wave@beta) and let me know if it resolves the issue. I’ve changed how v-wave detects a vue3 environment and it shouldn’t cause this problem anymore.