Skip to content

Conversation

DipakHalkude
Copy link

No description provided.

@meta-cla meta-cla bot added the CLA Signed label Sep 23, 2025
@DipakHalkude
Copy link
Author

Problem: jsconfig.json with comments (JSONC) fails to parse in non-TypeScript projects.

Change: In packages/react-scripts/config/modules.js, when jsconfig.json exists:
Try to resolve typescript from app node_modules; if available, parse with ts.readConfigFile (supports JSONC).
Otherwise, fallback to strict JSON.parse; on failure, show a clear message suggesting to install TypeScript (dev dependency) to enable JSONC support.

Impact: Projects can use comments in jsconfig.json without requiring TypeScript globally; strict JSON still works without extra deps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant