I have a issue with Angular 2. When i want to start server it get this:
$ ng serve
Cannot read property \'config\' of null
TypeError: Cannot read property \'
My first suggestion would be to update Angular CLI by following these instructions here. This topic is covered a bit here. The usual culprit is an update of Angular CLI without following the above instructions, but you don't give any specifics on your situation.
http://javasampleapproach.com/aws/angular-4-amazon-s3-example-how-to-upload-file-to-s3-bucket
in your tsconfig.app.json file put this
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": ["node"]
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
you missing .angular-cli.json,
you can generate it by(go to a new folder)
ng new project-name
now copy .angular-cli.json file to your project root.
ng serve
the error should be gone.
Make Sure You are inside the project folder. This may happen when the programmer has a folder for Practice purpose for eg: says "MyWorkOuts" folder. in which the programmer may have lot of practice app says:practice1,practice2,etc...
I use VS code in which make sure the terminal is in the exact angular application you try to start.
this may look simple or even silly. But while learning all happens. after making sure you may follow the other solutions of our stackoverflow friends.
Thank You guys Good Day :-)