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

useCssVars is called without current active component instance #7759

Closed
max512060925 opened this issue Feb 20, 2023 · 1 comment · Fixed by #7760
Closed

useCssVars is called without current active component instance #7759

max512060925 opened this issue Feb 20, 2023 · 1 comment · Fixed by #7760

Comments

@max512060925
Copy link

Vue version

3.2.47

Link to minimal reproduction

https://sfc.vuejs.org/#eNqNUNFqwzAM/BXhMdJCE3evWVrYfxiGm6iJu8Q2lpMySv59clO2ssHok+XT6U66i3jzvphGFKWoqA7GRyCMo4de23anRCQl9mbwLkS4QMAjaIL39M5wDG6AjIezV2WVrZ2lCAddf7TBjbaB3ZW4ygI22VrZSi4Gey4jDr7XEbkGqBozQd1romSIFNkyPZXkRmLLO3pF8bNPxZP2Hi5p/mya2JXwst0+8yIAHZq2i9/ArGyR5B4iw90BJUz5wdhm9QOtFz0+5baF2IglnXzQvjiRs5zk1UjdGhxguVgnjNNKfyW6GD2VUtKxTvmfqHChlVwVYbTRDFggDfkhuDNhYGElNncaksEJQx7QNhgw/Kf5i/pHN8nyTbOYvwC8erQ4

Steps to reproduce

<template>
  <div class="test">test</div>
</template>
<script setup>
let background = $ref('red')
</script>
<style>
#app {
  width: 100%;
  height: 100%;
}
.test {
  width: 100%;
  height: 100%;
  background: v-bind(background);
}
</style>

What is expected?

useCssVars work well

What is actually happening?

useCssVars not effective
123

System Info

No response

Any additional comments?

No response

@baiwusanyu-c
Copy link
Member

This may be a compiler bug

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants