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

🐛 BUG: define:vars - Identifier 'xxx' has already been declared #3643

Closed
1 task
laurieherault opened this issue Jun 19, 2022 · 2 comments
Closed
1 task
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)

Comments

@laurieherault
Copy link

What version of astro are you using?

1.0.0-beta.47

Are you using an SSR adapter? If so, which one?

no

What package manager are you using?

npm

What operating system are you using?

Windows, Linux

Describe the Bug

When you create an Astro component with an inline script with define:vars and use this component multiple times you have a bug because the variable created by Astro is used multiple times.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-hgd3l7

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added this to Needs Triage in 🐛 Bug Tracker Jun 19, 2022
@bholmesdev bholmesdev added - P3: minor bug An edge case that only affects very specific usage (priority) s1-small labels Jun 20, 2022
@bholmesdev
Copy link
Contributor

Interesting bug @laurieherault! Seems we define variables without de-duping props passed to a component. Worth investigating 👍

@FredKSchott
Copy link
Member

Thanks for filing! I believe that this has been fixed in RC! If you can still reproduce, please comment and we can reopen to debug more.

🐛 Bug Tracker automation moved this from Needs Triage to Done Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)
Projects
No open projects
Development

No branches or pull requests

3 participants