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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 BUG: Importing @fontsource/* packages in Astro frontmatter results in a build erroring #3536

Closed
1 task done
matthewp opened this issue Jun 6, 2022 · 0 comments 路 Fixed by #3537
Closed
1 task done
Assignees
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@matthewp
Copy link
Contributor

matthewp commented Jun 6, 2022

What version of astro are you using?

1.0.0-beta.41

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

None

What package manager are you using?

pnpm

What operating system are you using?

Mac

Describe the Bug

Something like this results in a build error:

---
import "@fontsource/montserrat";
---
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<title>Astro</title>
	</head>
	<body>
		<h1>Astro</h1>
	</body>
</html>

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ehxpif?file=README.md

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 6, 2022
@matthewp matthewp self-assigned this Jun 6, 2022
@matthewp matthewp added the - P4: important Violate documented behavior or significantly impacts performance (priority) label Jun 6, 2022
馃悰 Bug Tracker automation moved this from Needs Triage to Done Jun 6, 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
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant