Skip to content

Application error: a client-side exception has occurred while loading innovision-open-source.vercel.app (see the browser console for more information). #140

@VishalRaut2106

Description

@VishalRaut2106

Problem

Visiting a chapter whose AI-generated content has an unexpected data type
(e.g. para content being an array instead of a string, or code content
being null) causes a full client-side application error — the entire
page crashes with a white screen.

Steps to Reproduce

  1. Open any roadmap with a do-while loop or complex code chapter
  2. AI generates the chapter with para content as an array OR code
    content as null
  3. ❌ Page shows: "Application error: a client-side exception has occurred"

Root Cause

In src/components/chapter_content/Content.jsx:

Bug 1 — para with array content crashes dangerouslySetInnerHTML:

// ❌ Crashes if AI returns content: ["line1", "line2"] instead of a string
dangerouslySetInnerHTML={{ __html: item.content }}
Image Image

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions