Starting out from the project at master, I tried to add some more features and found that if I start using interface types then webpack is complaining that it cannot find the interface.
How to reproduce:
- Start from the
angularcli-meteor project at master
- In
app.component.ts at line 17, add the correct typing (Chat) to the callback parameter. (The Chat interface is already imported.)
...
ngOnInit() {
Chats.find({}).subscribe((chats: Chat[]) => {
console.log(chats);
this.chats = chats;
});
}
...
- Run
npm run start
Result:
ERROR in .../angularcli-meteor-master/src/app/app.component.ts (17,38): Cannot find name 'Chat'.
Note
Thanks for your efforts to create this boilerplate. It's really useful.
Starting out from the project at master, I tried to add some more features and found that if I start using interface types then webpack is complaining that it cannot find the interface.
How to reproduce:
angularcli-meteorproject atmasterapp.component.tsat line 17, add the correct typing (Chat) to the callback parameter. (TheChatinterface is already imported.)npm run startResult:
ERROR in .../angularcli-meteor-master/src/app/app.component.ts (17,38): Cannot find name 'Chat'.
Note
Thanks for your efforts to create this boilerplate. It's really useful.