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 name 'Iterable'. #14595
Comments
This has nothing to do with angular itself, it's a typing thing. How does your tsconfig look like? Make sure you're using ts2.0+ |
Thank you @ericmartinezr for your reply. I am using TypeScript 2.1.5 and below is my tsconfig: and I am using Visual Studio 2015 with latest update 3 |
If you add |
It increased the number of errors to 2297 |
lol... can you share a repo of your project? I can't look at it right now though |
In my main.ts I removed
and added
|
@naveedahmed1 Remove the line you posted above and add this in your tsconfig.json
if that works, try removing PS : Also consider using the |
With the changes you suggested, it now throws 26 errors including:
|
@naveedahmed1 sorry then man, I'm out of ideas, stick to what works for you 👍 |
no worries! always appreciate your help :) |
I came across same issues. Fixed it by adding parameter in tsconfig.json |
@pawelczak is this a bug? The fix works but why |
I added this and it fixed all my new typescript warnings. "lib": ["es2015", "es2017", "dom"] You can read this |
I was experiencing the same issue and the first PS from #14595 (comment) solved my issue. I simply reinstalled all my typings with the |
Same issue.
solved it. |
Upgrading typescript solved the issue for me. |
solved it. |
"compilerOptions": { |
"compilerOptions": { worked for me |
This worked for me: npm i @types/node --save-dev` The node typing contains the node_modules/@ types/node/index.d.ts interface Iterable<T> { }
interface Iterator<T> {
next(value?: any): IteratorResult<T>;
} |
I came across same issues. Fixed it by Adding “lib”: [ “es2015”, “dom” ] in tsconfig.json |
…d we have no lib/index.js) in the package any more, this seems to help by manual testing per angular/angular#14595
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
I recently upgraded my angular 2 project to 4.0.0-beta.8. But when I try to compile, it throws below error:
node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(15,48): error TS2304: Cannot find name 'Iterable'.
I have also seen a question with similar error on stackoverflow but no one has responded yet.
http://stackoverflow.com/questions/42252002/angular2-cannot-find-name-iterable-in-core
The text was updated successfully, but these errors were encountered: