-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find interface defined in api/server/models.ts #1
Comments
Yeah, I noticed that but I still didn't have the time to investigate. I will probably start migrating the whole Ionic2CLI-meteor tutorial to angularcli in a couple of weeks, so I will have a look. |
@rgal75 I think you should remove baseUrl from src/tsconfig.app.json file. |
@mucahittekin I tried that but unfortunately it does not work. |
First of all: let's remove The issue is that webpack aliases do not work with angular-cli and I don't know why. They had their own solution with awesome-typescript-loader, but they now removed it to switch to Unfortunately I still didn't manage to make it work: angular/angular-cli#1465 (comment) |
For the moment I simply removed the alias and used relative paths. |
This is what I also ended up eventually. |
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-meteor
project atmaster
app.component.ts
at line 17, add the correct typing (Chat
) to the callback parameter. (TheChat
interface is already imported.)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.
The text was updated successfully, but these errors were encountered: