You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems /client is an excluded directory in tsconfig.json, resulting in *.ts not found & /client/main.js 404 when loacalhost:3000 is loaded.
Removing /client from the excludes allows tsc to compile the typescript files, however hits some compilation errors:
client/nickName-component/nickName.component.ts(31,9): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property. client/nickName-component/nickName.component.ts(31,29): error TS2304: Cannot find name 'io'.
Chat app will still not work at this point, BUT if we re-exclude /client & 'npm start' again, localhost:3000 seems much closer to working.
Activity
muniom commentedon Oct 2, 2016
+1, I'm also struggling with this error...
It seems /client is an excluded directory in tsconfig.json, resulting in *.ts not found & /client/main.js 404 when loacalhost:3000 is loaded.
Removing /client from the excludes allows tsc to compile the typescript files, however hits some compilation errors:
client/nickName-component/nickName.component.ts(31,9): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property. client/nickName-component/nickName.component.ts(31,29): error TS2304: Cannot find name 'io'.Chat app will still not work at this point, BUT if we re-exclude /client & 'npm start' again, localhost:3000 seems much closer to working.
muniom commentedon Oct 11, 2016
FYI these changes got it compiling and working for me: https://github.com/muniom/angular2-node-socket-io-chat-app/commit/d8095a409816b440ea80c258a77fb17c8023dbd9
LeiwenL commentedon Jan 26, 2017
Any news ? 😞
tomas313sk commentedon Feb 5, 2017
muniom changes in nickName.component.ts and tsconfig.json works for me. Not needed to change typings.json.
PrathameshRane commentedon Feb 9, 2017
what changes do you made can you plz tell..
itsmebhavin commentedon Mar 6, 2017
Here are the changes you have to do -
Niravshah06 commentedon Jan 20, 2018
with above mentioned changes and with changed version of rxjs it works on windows machine.