Avatar ·

خطأ tsconfig.json: Build: No inputs were found in config file — كيف أصلحه؟

مرحباً بالجميع! أنا مبتدئ في TypeScript وأستخدم Visual Studio 2015 مع ASP.NET Core. أنشأت مشروعاً، وأضفت ملف `tsconfig.json` في الجذر، ولكن عند الترجمة أحصل على الخطأ: > Build: No inputs were found in config file. Specify 'include' or 'files' property, or remove 'rootDir' to allow all files in the 'src' folder to be used. إليك ملف `tsconfig.json` الخاص بي: ```json { "compilerOptions": { "target": "es5", "module": "commonjs", "rootDir": "src", "outDir": "dist", "strict": true } } ``` في مجلد `src` لدي ملف `app.ts`: ```typescript function greet(name: string): string { return `Hello, ${name}!`; } console.log(greet("World")); ``` لكن TypeScript لا يرى هذا الملف. جربت إعادة تحميل الاستوديو، وحذف ملف `tsconfig.json` وإنشاءه من جديد — ولم يساعد. أرجو إرشادي، ما الخطأ الذي أفعله؟ لماذا لا يجد المترجم ملفات الإدخال رغم وجودها في مجلد `src`؟ شكراً مسبقاً! <<>>

سبب الخطأ

الخطأ في