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",
},
}