Subscribe on changes!

<style scoped> doesn't work on SFC components created by render functions

avatar
Mar 29th 2023

Vue version

3.2.47

Link to minimal reproduction

https://codesandbox.io/p/sandbox/prod-sun-sjr86q?file=%2Fsrc%2FApp.vue

Steps to reproduce

  1. Use these packages:
"vue": "^3.2.47",   
"vite": "^4.2.1",
"@vitejs/plugin-vue-jsx": "^3.0.1",
  1. Create a JSX component (or a component created with h()) in a SFC <script setup> and add it to a <template>. Use a <style scoped> in the same file where the JSX component is defined.

What is expected?