मुझे अपने कोणीय 2 स्टार्टर प्रोजेक्ट के साथ जाने वाले विजुअल स्टूडियो कोड को फ़िट करने में फिट बैठ रहा है।वीएस कोड त्रुटि S5057 निर्दिष्ट निर्देशिका में tsconfig.json फ़ाइल नहीं ढूंढ सकता: '।'
मैं इतनी तरह मेरे tsconfig.json की स्थापना की है ...
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
तुरंत मैं यह त्रुटि
[ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
class AppComponent
मैं पहचान नहीं कर सका तो मैं भाग गया क्या चल रहा था भर में आया था एक निर्माण और यह त्रुटि मिली।
error TS5057: Cannot find a tsconfig.json file at the specified directory: '.'
यह त्रुटि बताता है कि क्यों मैं घटक डेकोरेटर के बारे में त्रुटियों हो रही है, लेकिन मुझे यकीन है कि क्यों tsconfig.json फ़ाइल नहीं किया जा रहा है नहीं कर रहा हूँ।
मेरे पास केवल एक फ़ोल्डर है और यह index.html, package.json और .gitignore को छोड़कर सबकुछ पकड़ रहा है।