VS CODE error S5057 cannot find a tsconfig.json file at the specified directory: '.' -
i having fits getting visual studio code going angular 2 starter project.
i have set 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" ] }
immediately came across error
[ts] experimental support decorators feature subject change in future release. set 'experimentaldecorators' option remove warning. class appcomponent
i not identify going on ran build , got error.
error ts5057: cannot find tsconfig.json file @ specified directory: '.'
this error explains why getting errors component decorator, not sure why tsconfig.json file not being found.
i have 1 folder , holding except index.html, package.json , .gitignore.
for people on visual studio code, sufficient create tsconfig.json
file in document root (that's .ts
files are) simple contents: {}
.
this means "an empty json file <...>. sufficient people."
Comments
Post a Comment