New issue
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
Module not found: Error: Can't resolve '/.cache/webfonts/webfonts.css' in '...\node_modules\gatsby-plugin-webfonts' #37
Comments
Ok, I think the cause is we're trying to use custom fonts.
|
We are facing the same issue with the following config {
{
options: {
fonts: {
google2: [
{
family: "Montserrat",
axes: "wght@400;700",
},
],
},
},
resolve: `gatsby-plugin-webfonts`,
},
} Did you find a solution @sven5 ? |
@sensedrive We're no longer using |
My development also fails with the following error:
Configured like this: {
resolve: "gatsby-plugin-webfonts",
options: {
fonts: {
google: [
{
family: "Fira Sans",
variants: ["300", "400", "500"],
subsets: ["latin"],
fontDisplay: "swap",
strategy: "selfHosted" // 'base64' || 'cdn'
},
{
family: "Roboto Slab",
variants: ["500"],
subsets: ["latin"],
fontDisplay: "swap",
strategy: "selfHosted" // 'base64' || 'cdn'
}
]
},
formats: ["woff2", "woff"],
useMinify: true,
usePreload: true
//usePreconnect: false,
}
} |
I'm having this issue, as well. I cannot pass |
Same issue here. |
Yeah, I know this is a bit late but that's not the correct syntax for this plugin you should use |
Didnt fix it for me. |
I'm getting this error trying to run
gatsby develop
we're using the latest Gatsby packages:
The text was updated successfully, but these errors were encountered: