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

docs(sfc-script-setup): <script setup> cannot contain ES module exports #2532

Open
dargmuesli opened this issue Oct 11, 2023 · 0 comments
Open

Comments

@dargmuesli
Copy link

Commit 7ab3991 fixed issue #1678 by introducing an export to the interface Props. This export clashes with a specification in the same file, I think, which states:

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant