Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/How to fix the error"cannot get angular".
Next
Answered
prof.mustafamummingsv
  • 3
prof.mustafamummingsv
Asked: June 20, 20222022-06-20T09:04:18+00:00 2022-06-20T09:04:18+00:00In: Error

How to fix the error”cannot get angular”.

  • 3

. Advertisement .

..3..

. Advertisement .

..4..

Hello everyone, I’m having the trouble named “cannot get angular”. I have tried a lots, but I cannot find the error. I did these steps as: 

  • Take to the project
  • Setting npm
  • Serving ng

The project runs properly. As you can see:

'** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200 **'.

Then, a web browser was open up, I acrossed to localhost:4200 and I have a result:

'Cannot GET /'

Finally, it shows the following:

'GET http://localhost:4200/ 404 (Not Found)'

The project should be good, however I’m having trouble getting to a working URL on the web page. Routing is set up in a different way than I am used to. The following is implemented : app.module.ts

const appRoutes: Routes = [
{ path: '', redirectTo: 'tree', pathMatch: 'full' },
{ path: 'admin', component: AdminPanelComponent, canActivate: [AuthGuard],
children: [{path:'', component: PanelComponent},{path: 'add', component:
AddTreeComponent}, {path:'manage-trees', component:ManageTreesComponent},
{path:'manage-users', component: ManageUsersComponent}, {path:'view-trees',
component: ViewTreeComponent}]},
{path:'tree', component: TreeComponent},
{path:'error', component: ErrorComponent},
{path:'unauthorized', component: UnauthorizedComponent},
{path:'login', component: LoginComponent},
{path:'entire-tree', component: EntireTreeComponent},
{ path: '**', component: PageNotFoundComponent },
];

I have found a lot of information sourses but I haven’t have the way to solve it. Please help me! Thank a lots.

cannot get angular
  • 1 1 Answer
  • 107 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-06-20T09:19:10+00:00Added an answer on June 20, 2022 at 9:19 am

    The cause:

    An error in Typescript or Angular Code, as in the import line here.

    The solution:

    I was able to overcome this mistake by locating and correcting the error that the console had indicated.

    Run ng build on your command line/terminal to get a meaningful error, like the one shown in red here: On the type ‘object,’ the property ‘name’ does not exist. Console example

    • 3
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.