A normal <script> may be needed in cases where we need to: [...] Declaring named exports.
This can seemingly lead to a new issue with [plugin:vite:vue] [@vue/compiler-sfc]: <script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.
What's the proper way to resolve this issue? What am I missing?
Commit https://github.com/vuejs/docs/commit/7ab399147c15abf232064ebf701552f07e00f638 fixed issue #1678 by introducing an
export
to theinterface Props
. This export clashes with a specification in the same file, I think, which states:This can seemingly lead to a new issue with
[plugin:vite:vue] [@vue/compiler-sfc]
:<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.
What's the proper way to resolve this issue? What am I missing?