Skip to content

gatsby build error: JSON.parse (from json-loader) #3148

@alampros

Description

@alampros

Occurs when a large number of pages (~20-50) are generated via gatsby-node.js#createPage. Works fine when only a handful are generated using the same method.

I've created a repo to reproduce this error: https://github.com/alampros/gatsby-json-parse-bug

error Building static HTML for pages failed

  Error: WebpackError

  - JSON.parse

  - index.js:4 Object.module.exports
    [gatsby-json-parse-bug]/[json-loader]/index.js:4:49

  - From previous event:

  - build-html.js:48 _callee$
    [gatsby-json-parse-bug]/[gatsby]/dist/commands/build-html.js:48:46

  - next_tick.js:131 _combinedTickCallback
    internal/process/next_tick.js:131:7

  - next_tick.js:180 process._tickCallback
    internal/process/next_tick.js:180:9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions