Skip to content

[Bug] JS SyntaxError 'appendChild: missing ) after argument list' on every model editor page load #409

Description

@saqibmanan

Summary

A JavaScript SyntaxError fires on every page load of the AI model editor on CivicDataSpace:

SyntaxError: Failed to execute 'appendChild' on 'Node': missing ) after argument list
    at p (/_next/static/chunks/549-3cc5a4b2f9dfcb5c.js:10:114337)
    at /_next/static/chunks/549-3cc5a4b2f9dfcb5c.js:10:115151
    at o1 (/_next/static/chunks/4bd1b696-faa427047ccc1678.js:1:89299)
    at uE ...

The error fires twice per page load and propagates through the React fiber renderer.

Impact

  • May cause partial render failures of specific UI sub-trees
  • Confirmed present on both the AI models list page and the model editor wizard
  • Likely caused by a template literal or dangerouslySetInnerHTML block with an unescaped parenthesis in the unminified source

Steps to Reproduce

  1. Open /dashboard/organization/civicdatalab/aimodels
  2. Click "Add New AI Model"
  3. Open browser DevTools → Console
  4. Observe two SyntaxError entries on page load

Fix Recommendation

Locate the p() function at offset 114337 in 549-3cc5a4b2f9dfcb5c.js in the unminified source. Likely a dynamic innerHTML or template literal with a malformed closing parenthesis. Fix and rebuild.

Environment

  • URL: https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels/edit/{id}/details
  • Discovered: 2026-06-22 via QA audit
  • Report ref: CDS-001

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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