I tried to setup an Angular project with Angular 8 but by accident I installed Angular 12. I realised this at the end of the project and I tried to downgrade but this is what happened after trying:
dependencies": {
"@angular/animations": "~12.2.8",
"@angular/common": "~12.2.8",
"@angular/compiler": "~12.2.8",
"@angular/core": "~12.2.8",
"@angular/forms": "~12.2.8",
"@angular/platform-browser": "~12.2.8",
"@angular/platform-browser-dynamic": "~12.2.8",
"@angular/router": "~12.2.8",
"@okta/okta-angular": "^3.2.2",
"@okta/okta-signin-widget": "^5.10.1",
"core-js": "^2.5.4",
"rxjs": "~7.3.1",
"tslib": "^1.9.0",
"zone.js": "~0.11.4
}
But in the console:
Angular CLI: 8.3.29
Node: 16.4.1
OS: win32 x64
Angular: undefined
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.803.29 (cli-only)
@angular-devkit/core 8.3.29 (cli-only)
@angular-devkit/schematics 8.3.29 (cli-only)
@schematics/angular 8.3.29 (cli-only)
@schematics/update 0.803.29 (cli-only)
What should I do?
If I try to make a new project to avoid this error, can I copy the Component and Service folder directly to the new one, because I cannot start the project from the beginning?