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

Astro hangs on invalid scss #4615

Closed
1 task
altano opened this issue Sep 4, 2022 · 0 comments · Fixed by #4675
Closed
1 task

Astro hangs on invalid scss #4615

altano opened this issue Sep 4, 2022 · 0 comments · Fixed by #4675
Assignees
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@altano
Copy link
Contributor

altano commented Sep 4, 2022

What version of astro are you using?

1.1.5

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

None

What package manager are you using?

npm

What operating system are you using?

linux / stackblitz

Describe the Bug

Invalid SCSS causes Astro to hang in dev mode. The page will never finish loading. This SCSS (notice the lack of a closing parenthesis) causes the problem:

<style lang="scss">
	article:global(:is(h1, h2, h3, h4, h5, h6):hover {
		color: purple;
	}
</style>

This SCSS is the only thing added to the default Astro demo. Remove it and restart the dev server and the page will load fine.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ebopvr?file=src/components/Card.astro

Participation

  • I am willing to submit a pull request for this issue.
@matthewp matthewp added the - P4: important Violate documented behavior or significantly impacts performance (priority) label Sep 6, 2022
@matthewp matthewp self-assigned this Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants