defineProps is not defined
Vue version
3.3.1
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-ptrymz?file=src/components/HelloWorld.vue
Steps to reproduce
- open url: https://stackblitz.com/edit/vitejs-vite-ptrymz?file=src/components/HelloWorld.vue
- open browers tools
- have a error is
defineProps is not defined
What is expected?
与 vue3.2 保持一致
What is actually happening?
貌似 setup作用域没导出 某些函数
System Info
System: any
npmPackages: any
vue: 3.3.1
Any additional comments?
No response
The same is true for 3.2.47 in the playground. In which version 3.2 can you use this? I think compiled macros will not be parsed in runtime-related methods, you should use them in the setup top-level scope or supported compiled macro functions
The same is true for 3.2.47 in the playground. In which version 3.2 can you use this? I think compiled macros will not be parsed in runtime-related methods, you should use them in the setup top-level scope or supported compiled macro functions
vue@3.2.47 ok
So toRefs, as a runtime method, wraps a compilation macro, and it will not process it in the compilation phase, even in 3.2.47