You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first invalid JSON file found prevents all others from being processed
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Add an empty file like sample.json in your content repo.
Run gatsby develop
Platform and Version
Current main branch.
Sample Code that illustrates the problem
Logs taken while reproducing problem
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/gatsby-node.js:108:29
at Array.forEach (<anonymous>)
at readManifest (/apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/gatsby-node.js:106:26)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.exports.createPages (/apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/gatsby-node.js:200:17)
at async runAPI (/apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/node_modules/gatsby/dist/utils/api-runner-node.js:302:16)
Could not read the manifest
Skipping JSON files
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/gatsby-node.js:275:29
at Array.forEach (<anonymous>)
at Object.exports.createPages (/apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/gatsby-node.js:273:30)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runAPI (/apps/jenkins/2.235.2/workspace/storage-api-HaZqYDZi/node_modules/gatsby/dist/utils/api-runner-node.js:302:16)
error "gatsby-node.js" threw an error while running the createPages lifecycle:
The text was updated successfully, but these errors were encountered:
Expected Behaviour
Only invalid JSON files should not be processed.
Actual Behaviour
The first invalid JSON file found prevents all others from being processed
Reproduce Scenario (including but not limited to)
Steps to Reproduce
sample.json
in your content repo.gatsby develop
Platform and Version
Current
main
branch.Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: