Added the code as it is to my project. I didn't have the typing.d.ts file pre-installed so created it manually and defined Config there but when ng serve the project and go to the login page enter credentials click on Login. I get the following error:
LoginComponent.html:6 ERROR ReferenceError: config is not defined
at AuthenticationService.push../src/app/auth/_services/authentication.service.ts.AuthenticationService.login (authentication.service.ts:23)
at LoginComponent.push../src/app/login/login.component.ts.LoginComponent.onSubmit (login.component.ts:51)
at Object.eval [as handleEvent] (LoginComponent.html:6)
at handleEvent (core.js:10251)
at callWithDebugContext (core.js:11344)
at Object.debugHandleEvent [as handleEvent] (core.js:11047)
at dispatchEvent (core.js:7710)
at core.js:9190
at SafeSubscriber.schedulerFn [as _next] (core.js:3563)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:195)
hello, I have downloaded an angular project from github on my PC. When I tap ''ng serve -o'' in the terminal an error was published like "The serve command requires to be run in an Angular project, but a project definition could not be found.
" but I am runnin the project in the correct field. I am using angular version"10.0.0" but the project that I am trying to run has the version 1.
Please could anyone help me how sove this issue.
this is the link to the project : https://github.com/cornflourblue/angular-9-registration-login-example .
I have cloned the repository on my mac then installed npm to download required modules then run 'ng serve' command to run the application, it returns me an error like
'The serve command requires to be run in an Angular project, but a project definition could not be found.'
Kindly help me how can i solve this issue and run your solution on my mac. Thank you so much in advance.