error TS1192: Module ‘json5‘ has no default export.
Broken Code ❌
1
import json5 from'json5';
Fixed Code ✔️
When you are importing a module with built-in TypeScript declarations and TypeScript tells you that this module does not have a default export, then you can solve this problem by adding “allowSyntheticDefaultImports” to your “tsconfig.json” file and setting it to true: