LyndaExerciseFiles / angular2-essential-training

NOTE: This is an old repo. New repo can be found at:
https://github.com/coursefiles/angular2-essential-training
41 stars 182 forks source link

npm error #15

Open Naxus28 opened 7 years ago

Naxus28 commented 7 years ago

tsc && concurrently "tsc -w" "lite-server" fail on my system

Naxus28 commented 7 years ago

Fixed the problem by replacing the "scripts start" command on package.json:

"start": "concurrently \"npm run tsc:w\" \"npm run lite\""

afide26 commented 7 years ago

Also fixed this by changing the target to es6 from es5 { "compilerOptions": { "target": "es6", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false, "suppressImplicitAnyIndexErrors": true } }

dusnoki commented 7 years ago

A pull request would be nice for this.

jschwarty commented 7 years ago

The Angular CLI helps to alleviate the project setup and build stuff for an Angular app. I will make a branch for this project that uses the CLI to help with this.

On Sat, Jun 3, 2017, 6:58 PM mikelbrownus notifications@github.com wrote:

While changing target from es5 to es6 does allow you to compile and run the project, it does not fix what is wrong with this project setup. Presumably you want to still be compiling to es5. Knowing what has gone wrong here is, uh ..., kind of important. The real struggle in moving to Angular 2+ may well be the large setup overhead you need in project setup and the biggest drawback to the framework.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LyndaExerciseFiles/angular2-essential-training/issues/15#issuecomment-306012510, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL4ZEn0m7H-lKyYHnzoWRwj2JG2RajPks5sAg85gaJpZM4MpKvO .

anuraggautam77 commented 7 years ago

Failed to start the application after npm start command.

jschwarty commented 7 years ago

There is a newer repo for the lesson code for this course. That can be found at: https://github.com/coursefiles/angular2-essential-training

Please clone that one down and see if you receive any of the above mentioned issues. If so, let me know either by a comment here or opening a new issue on the current repo at https://github.com/coursefiles/angular2-essential-training/issues

Thanks!