Skip to content

My screen getting blank when i use mdx live editor. #5555

@fiqryq

Description

@fiqryq

🐛 Bug Report

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io
  • I have read the console error message carefully (if applicable)

Description

I try to use MDX using livecodeblock , everything is okay until I try to delete all code on the live editor and when i press delete one more time my screen getting blank and my console give me this code : Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.

Have you read the Contributing Guidelines on issues?

Yes

Expected behavior

i can delete my code on the live editor.

Actual behavior

console code : Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.

Screen Shot 2021-09-11 at 22 48 27

Your environment

Reproducible demo

Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.

(Paste the link to an example repo, including a docusaurus.config.js, and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions