astro-font: Error `no such file or directory` trying to load the .txt file from temp

Hi,

I’m using "astro-font": "^0.0.60" and having this error when run build.

image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (13 by maintainers)

Most upvoted comments

Hi @rishi-raj-jain

my AstroFont config:

---
import { AstroFont } from "astro-font";
---

<AstroFont
  config={[
    {
      name: "Inter",
      src: [
        {
          style: "normal",
          weight: "400",
          path: "https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2",
        },
        {
          style: "normal",
          weight: "500",
          path: "https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2",
        },
        {
          style: "normal",
          weight: "700",
          path: "https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2",
        },
      ],
      preload: true,
      display: "swap",
      selector: "body",
      fallback: "sans-serif",
    },
  ]}
/>