-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Keyed each blocks break with component named Map #2612
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
Svelte uses a function create_fragment(ctx) {
var button, t_1, each_blocks = [], each_1_lookup = new Map(), each_1_anchor, current, dispose;
// ...
} |
What would fix this in this case is using |
@Conduitry Hmmm |
can confirm this is fixed in 3.6.0 |
Keyed each blocks break with a component named Map, throwing the error
'target' is a required option
. (Note, this happens whether Map is the component inside the block or the component with the each block in its template.)It took a while to track this down... is Map a reserved component name? If so, is there any chance the error message could be improved?
https://svelte.dev/repl?version=3.1.0&gist=0f12697412a5adacf701e3f5b14f9a8a
The text was updated successfully, but these errors were encountered: