I have no idea. I’m new to Meteor so I may be doing something very wrong. So as I’m working in a component. It appears that every two saves or a few more the component in the client stops working and I get the “Uncaught SyntaxError: Unexpected token :”.
As I step through the generated JavaScript there is a “:” in the line. So I don’t know if meteor is not compiling to JS correctly or what. Let me generate an error and see if I can get a screen shot.
Here is the definition of that method. I’m using “rxjs/Rx”.
public getCurrentCustomer():Observable<CustomerSearchResultItem> {
return this.subject.asObservable();
}
I must be doing something terribly wrong since the more I code the more these errors pop up. This is one of them. There are two more that appear … I will post them here as soon as they appear again.
I’m really concerned because I’m building a CRM and there are a lot more screens I have to build. So I’m wondering if there is something that I should be doing different in my TS code that would prevent and help the transpiler.
I would be willing to share this code. It is on BitBucket. The API’s are housed on Azure so it would be a minimal effort for you guys to look at it.