born2net / Angular-kitchen-sink

:rocket: Angular - learn by example
http://ng.javascriptninja.io
755 stars 146 forks source link

Failed to load resource... 404 Not found (Typescript issue?) #22

Closed borntorun closed 7 years ago

borntorun commented 8 years ago

When running with npm run devserver I get several errors "Failed to load resource..." for ts files.

The problem is with filename's case. For example, trying to load src/comps/sidemenu/Menu.ts but the file is in lowercase .../menu.ts.

Maybe a typescript issue? (I'm using 2.0.0-dev.20160628)

How to fix this?

virtualbox_centos_29_06_2016_00_29_59

born2net commented 8 years ago

it's odd as I fixed the case long time ago, try and rename all to lower case just to make sure its the issue...

borntorun commented 8 years ago

Yes, I tried that and that's the cause indeed.

born2net commented 8 years ago

ok will make a note to check asap

born2net commented 8 years ago

fixed!

borntorun commented 8 years ago

It's not only .../Menu.ts ... In the pic attached you can see the rest of the files with the same issue.

born2net commented 8 years ago

ha ok will check, which OS are you on?

borntorun commented 8 years ago

Linux (CentOS 7)

borntorun commented 8 years ago

I'v found several issues on typescript refering similar situations like this one. I tested in windows browser also and the problem is the same.

(How come you do not have this issue in your demo? diff typescript version?)

nicholasglazer commented 8 years ago

Have similar issue. OS: Arch Linux, npm: 3.9.6, node: 6.2.1.

After: `npm install` ![screenshot from 2016-06-29 15-49-45](https://cloud.githubusercontent.com/assets/7410355/16452515/9aa38032-3e11-11e6-979f-f623b2cae0ad.png)
After: `gulp development` ![screenshot from 2016-06-29 16-01-09](https://cloud.githubusercontent.com/assets/7410355/16452885/6cfb1454-3e13-11e6-8ced-db0934c78720.png)
After: `npm run devserver` ![screenshot from 2016-06-29 16-02-12](https://cloud.githubusercontent.com/assets/7410355/16452891/6f89439e-3e13-11e6-8185-030a9aafc2e7.png)
ZuBB commented 8 years ago

same thing. getting 404 for Starwars.ts, Minitabs.ts and Minitab.ts

born2net commented 7 years ago

did major refactoring today to jspm, please try again!