gatsby-plugin-prefetch-google-fonts no such file or directory `.cache/google-fonts//fonts`
See original GitHub issueDescription
The gatsby plugin prefetch fonts throws this error suddenly starts to throw the error Error: ENOENT: no such file or directory, stat '.cache/google-fonts//fonts'
Steps to reproduce
Install the last version of the plugin and try to run.
Expected result
Error should not be throwed.
Actual result
When start the application on development it throws this
ERROR #11321 PLUGIN
"gatsby-plugin-prefetch-google-fonts" threw an error while running the onPreBootstrap lifecycle:
ENOENT: no such file or directory, stat '.cache/google-fonts//fonts'
Error: ENOENT: no such file or directory, stat '.cache/google-fonts//fonts'
- api-runner-node.js:460 Promise.catch.decorateEvent.pluginName
[project]/[gatsby]/src/utils/api-runner-node.js:460:9
- From previous event:
- api-runner-node.js:459
[project]/[gatsby]/src/utils/api-runner-node.js:459:14
- timers.js:461 processImmediate
internal/timers.js:461:21
- From previous event:
- api-runner-node.js:451
[project]/[gatsby]/src/utils/api-runner-node.js:451:13
- From previous event:
- api-runner-node.js:367 module.exports
[project]/[gatsby]/src/utils/api-runner-node.js:367:3
- initialize.ts:413 initialize
[project]/[gatsby]/src/services/initialize.ts:413:9
Environment
{
name: 'gatsby-starter-default',
description: 'Gatsby default starter',
'dist-tags': {
next: '1.0.0',
latest: '1.0.0'
},
versions: [
'1.0.0'
],
maintainers: [
{
name: 'davekrstin',
email: 'dave@davekrstin.com'
}
],
time: {
modified: '2017-11-16T18:32:55.888Z',
created: '2017-11-16T18:32:55.888Z',
'1.0.0': '2017-11-16T18:32:55.888Z'
},
keywords: [
'gatsby'
],
author: {
name: 'Alecell',
email: 'alecell.dev@gmail.com'
},
license: 'MIT',
readmeFilename: 'README.md',
version: '1.0.0',
dependencies: {
gatsby: '^1.9.99',
'gatsby-link': '^1.6.24',
'gatsby-plugin-react-helmet': '^1.0.8'
},
main: 'n/a',
scripts: {
build: 'gatsby build',
develop: 'gatsby develop',
start: 'concurrently "gatsby develop" "json-server --watch ../playground/src/components/StatefulShell/configs/remote-config.json"',
format: 'prettier --trailing-comma es5 --no-semi --single-quote --write "src/**/*.js"',
test: 'echo "Error: no test specified" && exit 1'
},
devDependencies: {
concurrently: '^3.5.0',
prettier: '^1.7.4'
},
dist: {
integrity: 'sha512-nn5DNZ5dbwcDe2TmTQb1JRoLOe9hB8LhGOvLq5LU6UgApsn3MQMwhT7cACrxd+yD2V+pk0oTu9w6uL66olnSmg==',
shasum: '7d4a555f5a824bcfc876554b82ea839e190d2295',
tarball: 'https://registry.npmjs.org/gatsby-starter-default/-/gatsby-starter-default-1.0.0.tgz'
},
directories: {}
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:17
- Comments:9 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It occured when updating
from
"gatsby": "^2.21.33",
to "gatsby": "^2.25.1",
My solution was, removing the prefetch plugin and using this https://www.gatsbyjs.com/plugins/gatsby-plugin-google-fonts/. Rewrote gatsby-config.js. Working now.
Hey guys, since the plugin isnt owned by
gatsby
I close the ussue, but I don’t “solve” the issue, as thegatsby-plugin-prefetch-google-fonts
is much deprecated and it was archived I have no choice but search for another plugin that does the trick, luckily gatsby-plugin-webfonts still update and solve the issue.