Closed jacksbox closed 3 years ago
@jacksbox : Please see this example https://github.com/rohanray/next-fonts-example/tree/master/with-styled-comp
Also you can look at https://github.com/rohanray/next-fonts/issues/36
Closing for now. @jacksbox : please create a new issue if above did not work for you
I'm using nextjs with an external dependency which loads fonts via
import FontA from '../../fonts/FontA.ttf'
an then uses them in custom css viastyled components
...sadly that breaks nextjs and I'm not able to get this working - using
next-fonts
I get anSyntaxError: Invalid or unexpected token
error when trying to access a next page - any idea how to get this setup working withnext-fonts
?