-5
I took a project in Angular for maintenance, but it’s in the version of Angular CLI 4.2
My system is with the versions of Node, Typescript and Angular cli in the following versions:
Angular CLI: 10.0.6
Node: 12.18.3
Typescript: Version 3.9.7
OS: win32 x64
My project is with the versions:
D:\VSTS\ASMS\ASMS.Angular4.2>ng --version
Your global Angular CLI version (10.0.6) is greater than your local
version (1.3.0). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
@angular/cli: 1.3.0
node: 12.18.3
os: win32 x64
@angular/animations: 4.4.7
@angular/cdk: 2.0.0-beta.12
@angular/common: 4.4.7
@angular/compiler: 4.4.7
@angular/core: 4.4.7
@angular/forms: 4.4.7
@angular/http: 4.4.7
@angular/material: 2.0.0-beta.12
@angular/platform-browser: 4.4.7
@angular/platform-browser-dynamic: 4.4.7
@angular/router: 4.4.7
@angular/cli: 1.3.0
@angular/compiler-cli: 4.4.7
@angular/language-service: 4.4.7
While trying to run the project is returning me the following errors:
D:\VSTS\ASMS\ASMS.Angular4.2>ng serve
Your global Angular CLI version (10.0.6) is greater than your local
version (1.3.0). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
ENOENT: no such file or directory, stat 'D:\VSTS\ASMS\ASMS.Angular4.2\src\tsconfig.app.json'
Error: ENOENT: no such file or directory, stat 'D:\VSTS\ASMS\ASMS.Angular4.2\src\tsconfig.app.json'
at Object.statSync (fs.js:1016:3)
at AotPlugin._setupOptions (D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@ngtools\webpack\src\plugin.js:62:16)
at new AotPlugin (D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@ngtools\webpack\src\plugin.js:27:14)
at _createAotPlugin (D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@angular\cli\models\webpack-configs\typescript.js:55:12)
at Object.exports.getNonAotConfig (D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@angular\cli\models\webpack-configs\typescript.js:71:19)
at NgCliWebpackConfig.buildConfig (D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@angular\cli\models\webpack-config.js:29:37)
at Class.run (D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@angular\cli\tasks\serve.js:43:98)
at D:\VSTS\ASMS\ASMS.Angular4.2\node_modules\@angular\cli\commands\serve.js:114:26
I have no experience in Angular, so I have no idea how to solve these mistakes.
Does anyone have any idea what I should do?
Inside the.json angular there is a "tsConfig" variable, check if it is pointing correctly to your tsconfig.app.json. With this, also check if there is a tsconfig.app.json.
– Gustavo Cinque