Skip to content

JSON parse fails after updating to 2.0.0-alpha.64 #3561

Description

@nicolas-actyx

🐛 Bug Report

I got this error after I updated the docusaurus version from 2.0.0-alpha.48 to 2.0.0-alpha.64.

Have you read the Contributing Guidelines on issues?

yes.

To Reproduce

  1. Download this example repository:
    test-docs.zip
  2. run npm i
  3. run npm run start
  4. see JSON parse error as seen in the screenshots
  5. comment out line 6 in docs/home/home.md
  6. see error disappear

Expected behavior

The project should start and build as it was before updating to the new docusaurus version (2.0.0-alpha.64)

Actual Behavior

When running npm run start or npm run build I get errors related to the JSON parserin webpack (see screenshots)

Screenshot 2020-10-09 at 09 23 41

Screenshot 2020-10-07 at 17 04 25

Your Environment

  • Docusaurus version used: 2.0.0-alpha.64
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome Version 85.0.4183.121 (Official Build) (64-bit)
  • Operating system and version (desktop or mobile): macOS Mojave 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions