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

fix: index out of range [0] error when compent is before the html tag #891

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

MoustaphaDev
Copy link
Member

Changes

Fix #880
We were trying to access an element of a slice (stack of open elements) without making sure it exists.

Testing

Added a transform test

Docs

N/A Bug fix

Copy link

changeset-bot bot commented Nov 15, 2023

🦋 Changeset detected

Latest commit: e66259e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/compiler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MoustaphaDev MoustaphaDev changed the title Fix out of range fix: index out of range [0] error when compent is before the html tag Nov 15, 2023
@MoustaphaDev MoustaphaDev merged commit 852fc1b into withastro:main Nov 15, 2023
5 checks passed
@MoustaphaDev MoustaphaDev deleted the fix-out-of-range branch November 15, 2023 14:26
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

Successfully merging this pull request may close these issues.

🐛 BUG: runtime error: index out of range [0] with length 0
3 participants