Open Willo0ow opened 1 year ago
The error doesn't show in reproduction template, but it seems obvious and the solution is even in vue docs.
The error should show in a minimal reproduction so that I can figure out the actual root cause. I'm wondering why noone else reported this issue yet, for example.
The export should be in a separate script tag (like vue documentation suggests), or in somewhere in types.
Actually I've taken the export from Vue's documentation: https://vuejs.org/api/sfc-script-setup.html#default-props-values-when-using-type-declaration
I guess that's the origin of the documentation that you used - https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md#default-props-values-when-using-type-declaration - and there is no export.
As vue documentation states "A normal Githubissues.
Environment
Darwin
v18.14.0
3.3.1
2.3.3
yarn@1.22.19
vite
-
-
-
Reproduction
The error doesn't show in reproduction template, but it seems obvious and the solution is even in vue docs.
Describe the bug
There is an export statement inside script setup tag in CookieControl.vue which causes app to crash. It's this block:
The export should be in a separate script tag (like vue documentation suggests), or in somewhere in types.
Additional context
No response
Logs