Nikos123 Posted March 26, 2017 Share Posted March 26, 2017 Any ideas what is going wrong here? Quote Link to comment Share on other sites More sharing options...
adam Posted March 26, 2017 Share Posted March 26, 2017 What version of Typescript are you using? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 26, 2017 Share Posted March 26, 2017 You might want add statement termiinators, ';'. Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 26, 2017 Author Share Posted March 26, 2017 2 hours ago, adam said: What version of Typescript are you using? 2.1.4 Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 26, 2017 Author Share Posted March 26, 2017 here is the code: https://github.com/QuantumInformation/Density-Wars/blob/master/client/Ground.ts#L18 ; is always optional Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 26, 2017 Author Share Posted March 26, 2017 I just added ; and the error goes away. this is a bigger problem then, I have my eslint force me to use no ; (very common) Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 26, 2017 Share Posted March 26, 2017 Maybe it is only optional in Javascript. The idea of Typescript is to force some check-able structure. Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 26, 2017 Author Share Posted March 26, 2017 definitely not Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 26, 2017 Author Share Posted March 26, 2017 I now have this error: Strange cause it defo exists in the d.ts Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 26, 2017 Share Posted March 26, 2017 Think it should be: camera : BABYLON.FreeCamera = ... Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 27, 2017 Author Share Posted March 27, 2017 cool , resolved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.