We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3ec8eb commit b7bc1c6Copy full SHA for b7bc1c6
packages/gatsby/src/utils/validate-page-component.ts
@@ -61,7 +61,7 @@ export function validatePageComponent(
61
//
62
63
if (!cleanComponentPath.includes(`/.cache/`) && isProductionEnv) {
64
- const fileContent = fs.readFileSync(component, `utf-8`)
+ const fileContent = fs.readFileSync(cleanComponentPath, `utf-8`)
65
66
if (fileContent === ``) {
67
const relativePath = path.relative(directory, cleanComponentPath)
0 commit comments