Currently, I am working on a project in Angular 15 where I am migrating code from Angular version 5. Despite fixing all the errors, I'm facing one particular issue. Here are the details of my current Angular version:
Angular CLI: 15.2.10 Node: 18.18.2 Package Manager: npm 10.2.0 OS : win32 x64
The error I'm encountering is as follows: [Error]: https://i.sstatic.net/22xkl.png
Below is my package.json file:
{
"name": "demo",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"prod": "node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build-prod": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build -- prod"
},
"private": true,
"dependencies": {
"@agm/core": "^1.0.0-beta.3",
"@angular/animations": "^15.0.0",
"@angular/common": "^15.0.0",
"@angular/compiler": "^15.0.0",
...
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.0.5",
"@angular/cli": "^15.2.10",
"@angular/compiler-cli": "^15.0.0",
...
}
}
Here is angular.json file:
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"demo": {
"projectType": "application",
...
}
},
"cli": {
"analytics": "125d0ec8-f37c-4580-834c-591ee3bb8c6c"
}
}
Here is tsconfig.json
...
Here need solution for this issue. Thank you.