Skip to content

Error Building static HTML for pages #3201

@violetcrestedwren

Description

@violetcrestedwren

Description

Build is failing on static HTML for pages. I've backed out all changes from the current commit, and am still seeing the same build error. Dev works fine, and pages are loading as expected.

Environment

Gatsby version: 1.9.73
Node.js version: 3.10.3
Operating System: Windows 10

File contents (if changed):

gatsby-config.js:
package.json:
gatsby-node.js:
gatsby-browser.js:
gatsby-ssr.js:

Actual result

Build error:

`success Building CSS — 8.583 s
success Building production JavaScript bundles — 21.215 s

error Building static HTML for pages failed

See our docs page on debugging HTML builds for help https://goo.gl/yL9lND

Error: Module build failed: SyntaxError: Unexpected end of JSON input

  • JSON.parse

  • index.js:4 Object.module.exports
    [open.fda.gov]/[json-loader]/index.js:4:49

  • @ ./.cache/sync-requires.js 64:23-109 66:40-126 66:284-370 66:536-622 66:770-856 66:1020-1106 66:1282-1368 66:1538-1624 66:1796-1882 66:2048-2134 66:2310-2396 66:2576-2662 66:2838-2924 66:3116-3202 66:3390-3476 66:3652-3738 66:3898-3984 66:4144-4230 66:4390-4476 66: 4636-4722 66:4878-4964 66:5152-5238 66:5394-5480 66:5674-5760 66:5916-6002 66:6300-6386 66:6664-6750 66:6978-7064 66:7328-7414 66:7646-7732 66:8016-8102 66:8364-8450 66:8690-8776 66:9012-9098 66:9316-9402 66:9642-9728 66:9950-10036 66:10236-10322 66:10510-10596 66:1 0784-10870 66:11080-11166 66:11358-11444 66:11648-11734 66:11926-12012 66:12200-12286 66:12480-12566 66:12786-12872 66:13060-13146 66:13346-13432 66:13620-13706

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `gatsby build --verbose``

Expected behavior

What should happen?

Steps to reproduce

1. This is the branch on github

2. Running dev:css and dev:site works fine and the site looks how it should.

3. Running build generates the error listed above. The issue started with commit c687dcbbd6e6e7b4b48e7fa7d55b431c39ba17e1, but even after backing out all of those changes, the build error persists.

Any help would be appreciated!

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