Skip to content

Conversation

@safayavatsal
Copy link

@safayavatsal safayavatsal commented Oct 19, 2025

Fixes #288

Fixes #306

Replace 'assert { type: "json" }' with 'with { type: "json" }' across all public and kitchen-sink controllers.

  • Resolves Node.js v20+ compatibility issues causing SyntaxError on startup
  • application now starts successfully
  • Updated 11 controller files to use modern import attribute syntax

This change ensures compatibility with Node.js v20+ where the assert keyword for JSON imports has been deprecated in favor of the with keyword.

Replace 'assert { type: "json" }' with 'with { type: "json" }' across
all public and kitchen-sink controllers.

- Resolves Node.js v20+ compatibility issues causing SyntaxError on startup
- Fixes issues hiteshchoudhary#288 and hiteshchoudhary#306 - application now starts successfully
- Updated 11 controller files to use modern import attribute syntax

This change ensures compatibility with Node.js v20+ where the assert keyword
for JSON imports has been deprecated in favor of the with keyword.
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.

BUG: assert identifier BUG:The app crashes on startup due to SyntaxError: Unexpected identifier 'assert'

1 participant