-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Error when creating an accessor for an prop #10311
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
Comments
What's the use case? What's the Svelte 4 equivalent? I think exporting things from |
The use would be to create individual prop accessors instead of all at once using the |
It would be confusing to explain why you can export |
note that we reverted this change in #10523, this will now work |
Describe the bug
When creating an accessor to an prop without using
svelte:options
, If you create an accessor for a binded prop usingexport
its value becomes an internal function, if you try to export a prop that is used as an object the compiler tries to export using a variable that is never declaredReproduction
repl
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: