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

[svelte] preprocesser overwrites this attribute in an <svelte:component /> #97

Open
s0kil opened this issue Dec 8, 2019 · 0 comments
Open

Comments

@s0kil
Copy link

s0kil commented Dec 8, 2019

From: <svelte:component this={CountryFlag} {country}/>
Into: <svelte:component {...map("svelte:component", {...})} />

Svelte Compiler Error:

<svelte:component> must have a 'this' attribute
166:             {#each countries as country}
167:               <p class={__styled__.styles["__p"]}>
168:                 <svelte:component {...map("svelte:component", {
                     ^
169:             this: CountryFlag,
170:             country: country
@s0kil s0kil changed the title Svelte preprocesser overwrites this attribute in an <svelte:component /> [svelte] preprocesser overwrites this attribute in an <svelte:component /> Dec 8, 2019
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