Skip to content

fix: add missing app container to HTML report template - #13

Merged
humzakhan merged 2 commits into
mainfrom
humzakhan/fix-empty-report
Mar 9, 2026
Merged

humzakhan merged 2 commits into
mainfrom
humzakhan/fix-empty-report

Conversation

@humzakhan

Copy link
Copy Markdown
Owner

Summary

Fixes the "Cannot set properties of null (setting 'innerHTML')" error that was causing generated HTML reports to display blank with a console error.

Root Cause

The JavaScript code expects a DOM element with id="app" to mount the UI, but the HTML template was missing this container. The dev template had it, but the production template did not.

Solution

Added <div id="app"></div> to the body of the report HTML template so the JavaScript has a valid target element for initialization.

Instead of always producing "repomap-report.html", the default output
filename is now "<repo-name>-repomap.html" (e.g. "myapp-repomap.html").
Users can still override with --output/-o.
@humzakhan
humzakhan merged commit 758d37f into main Mar 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant