fontsource: Noto Sans font files missing

Describe the bug i try to build a project with fontsource. but it tell me ./node_modules/@fontsource/noto-sans-jp/japanese-400.css Error: Can’t resolve ‘./files/noto-sans-jp-japanese-400-normal.woff2’ in ‘/srv/demo/umami/node_modules/@fontsource/noto-sans-jp’ at runMicrotasks (<anonymous>)

To Reproduce

git clone https://github.com/mikecao/umami.git
cd umami
npm i
npm run build

Expected behavior build pass

Screenshots If applicable, add screenshots to help explain your problem.

Additional context “@fontsource/inter”: “^4.5.0”, “@fontsource/noto-sans-jp”: “^4.5.0”, “@fontsource/noto-sans-sc”: “^4.5.0”, “@fontsource/noto-sans-tc”: “^4.5.0”,

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Google seems to have pushed an update to their CSS API (I have a guess it’s to do with the whole Noto Fonts rework) which seems to have affected us downstream. I’ll need time to investigate this a bit more since I am currently travelling but should finally get back home in a couple of days.

I suggest downgrading to 4.5.0 (pinned) for the time being, which seems to be a working version. You are likely downloading 4.5.1 which was after Google pushing their Noto update.

For other developers, let me know if any of the non-Noto fonts are affected since I’m not sure if the scope is larger than that.

I’ll pin this issue for the time being.

Thanks. May be documentation need to be updated. Please see the image. image

Thank you @DecliningLotus downgrading to the 4.5.0 version fixed it for me.