deeleman / learning-angular2

Code samples repository for the examples provided in "Learning Angular 2", published by Packt Publishing - THE BOOK COVERS UP TO RC.1 and hence is severely OUTDATED. PLEASE REFER TO THE LATEST EDITIONS INSTEAD.
https://www.packtpub.com/web-development/learning-angular-2
108 stars 59 forks source link

GET http://localhost:3000/built/pomodoro-timer.js 404 (Not Found) #46

Closed ricardosotogar closed 7 years ago

ricardosotogar commented 7 years ago

I tried the example of the book and it fails because it does not find the file hello angular.js. I have downloaded your example from git to check your code and when i have tried to run it, I got the same message but for your file pomodoro-timer.js. It seems that the js files are not recognized.

This is the message that i get in the chrome console. zone.js:101 GET http://localhost:3000/built/pomodoro-timer.js 404 (Not Found) scheduleTask @ zone.js:101 ZoneDelegate.scheduleTask @ zone.js:336 Zone.scheduleMacroTask @ zone.js:273 (anonymous) @ zone.js:122 send @ VM207:3 X @ system.src.js:5031 (anonymous) @ system.src.js:5031 ZoneAwarePromise @ zone.js:584 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 (anonymous) @ system.src.js:5031 ZoneDelegate.invoke @ zone.js:323 Zone.run @ zone.js:216 (anonymous) @ zone.js:571 ZoneDelegate.invokeTask @ zone.js:356 Zone.runTask @ zone.js:256 drainMicroTaskQueue @ zone.js:474 zone.js:323 Error: Error: XHR error (404 Not Found) loading http://localhost:3000/built/pomodoro-timer.js

I think that i followed the steps of the book. any idea?

ricardosotogar commented 7 years ago

forget it. With your code, after to run tsc --watch it have worked. So in my code something is wrong.