Skip to content

Cannot find interface defined in api/server/models.ts #1

Open
@rgal75

Description

@rgal75

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:

  1. Start from the angularcli-meteor project at master
  2. 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;
    });
  }
...
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions