We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am trying to setup typography for my gatsbyjs project with the following code:
import Typography from 'typography' const typography = new Typography({ headerFontFamily: ['Allura','cursive'], bodyFontFamily: ['Open Sans','sans serif'], googleFonts: [ { name: 'Allura', styles: ['400'], subsets:['latin-ext'], }, { name: 'Open Sans', styles: ['300','400','600'], subsets: ['latin-ext'] }, ], }) export default typography
I am receiving a Warning on compile:
Warning: Failed prop type: Invalid prop typography of type function supplied to GoogleFont, expected object. in GoogleFont
typography
function
GoogleFont
object
And when navigating homepage on browser I get the following error:
Unhandled Rejection (TypeError): typography.injectStyles is not a function
Couldn't figure out a solution. Would appreciate urgent help. Thank you in advance folks!
The text was updated successfully, but these errors were encountered:
Had a similar issue - downgrading to v0.16.18 helped
Sorry, something went wrong.
No branches or pull requests
Hi,
I am trying to setup typography for my gatsbyjs project with the following code:
I am receiving a Warning on compile:
And when navigating homepage on browser I get the following error:
Couldn't figure out a solution. Would appreciate urgent help. Thank you in advance folks!
The text was updated successfully, but these errors were encountered: