You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: tsconfig.json is not a json5 file, it is a jsonc file.
Therefore, tsc cannot recognize the example in the page.
Recommended Fix:
{
// Change this to match your project"include": ["src/**/*"],
"compilerOptions": {
// Tells TypeScript to read JS files, as// normally they are ignored as source files"allowJs": true,
// Generate d.ts files"declaration": true,
// This compiler run should// only output d.ts files"emitDeclarationOnly": true,
// Types should go into this directory.// Removing this would place the .d.ts files// next to the .js files"outDir": "dist",
},
}
Activity
ahtee commentedon Sep 3, 2020
I see your recommended fix would be to only change the wording in the sentence before: The TSConfig is a json5 file... from file to jsonc.
BlackGlory commentedon Sep 3, 2020
Ben (@ahtee) So, can you create a PR for this?
Change json5 -> jsonc - fixes #1019