-
Notifications
You must be signed in to change notification settings - Fork 341
problem with 0.7.0 in Angular, while 0.6.0 works #150
Comments
@loremaps just a feeling: are u using typescript in your own project that is importing “exclude”: [
“node_modules”,
] to your |
I have the same problem. @mistic unfortunately, your solution didn't fix the problem for me. |
@loremaps |
Thank you very much for looking into this... I did some tests: I stated a clean angular project (now with angular-cli 1.0.6):
Then I create the following typescript file:
At this point build fails with different error:
I noticed that the typescript version in package.json was:
Now the project builds...I will now try to find out what's wrong with my original project and let you know. Thanks again. |
@loremaps looking at the errors its clear to me that my hint about adding |
I guess that's an issue with the Angular CLI default config in version 1.0.3, because it looks like the 1.0.6 handles the node_modules typings correctly, because the error server files are no longer loaded, and not throwing an error. I guess you can also use |
I can now confirm that after upgrading to |
For anyone with the same TS issue, I had to delete my yarn.lock file, run Related thread: microsoft/TypeScript#16772 |
Moved boom to dependencies
With typescript 2.3.0 in my angular project (angular-cli 1.0.3), I receive the following errors:
ERROR in /home/ui/node_modules/graphql-subscriptions/dist/with-filter.d.ts (2,94): Generic type 'AsyncIterator<T, E>' requires 2 type argument(s).
ERROR in /home/ui/node_modules/graphql-subscriptions/dist/with-filter.d.ts (3,58): Generic type 'AsyncIterator<T, E>' requires 2 type argument(s).
ERROR in /home/ui/node_modules/subscriptions-transport-ws/dist/server.d.ts (5,41): Generic type 'AsyncIterator<T, E>' requires 2 type argument(s).
ERROR in /home/ui/node_modules/subscriptions-transport-ws/dist/server.d.ts (29,58): Generic type 'AsyncIterator<T, E>' requires 2 type argument(s).
ERROR in /home/ui/node_modules/subscriptions-transport-ws/dist/server.d.ts (32,31): Generic type 'AsyncIterator<T, E>' requires 2 type argument(s). webpack: Failed to compile.
Please note that with 0.6.0 it works fine. Am I missing something?
The text was updated successfully, but these errors were encountered: