vercel / geist-font

https://vercel.com/font
SIL Open Font License 1.1
2.13k stars 54 forks source link

`TypeError: next_font_local__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function` when used "use client" #98

Closed kriptonian1 closed 3 months ago

kriptonian1 commented 3 months ago

Font Name (Geist Sans/Geist Mono):

Description of the Issue: whenever I am using geist/font/sans within a client side section, it is throwing the error TypeError: next_font_local__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function

Steps to Reproduce:

  1. Import GeistSans from geist/font/sans
  2. Use it in a className
  3. add use client to the component.

Expected Behavior: It was expected to load the the component without any error

Screenshots:

image

Environment (please complete the following information):

Additional Context: Add any other context about the problem here.

kriptonian1 commented 3 months ago

This worked for me https://github.com/vercel/geist-font/issues/59#issuecomment-1854522683