Closed MuhammadTahir92 closed 6 years ago
ERROR in node_modules/@angular/core/src/change_detection/differs/default_iterable_differ.d.ts(12,32): error TS2304: Cannot find name 'Iterable'.
node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(14,48): error TS2304: Cannot find name 'Iterable'.
my package.json is
{ "name": "tradelive", "version": "1.0.0", "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "readme": "NativeScript Application", "repository": "<fill-your-repository-here>", "nativescript": { "id": "org.nativescript.tradelivemobile", "tns-android": { "version": "3.4.2" } }, "scripts": { "tslint": "tslint -p tsconfig.json" }, "dependencies": { "@angular/animations": "~5.1.3", "@angular/common": "~5.1.3", "@angular/compiler": "~5.1.3", "@angular/core": "~5.1.3", "@angular/forms": "~5.1.3", "@angular/http": "~5.1.3", "@angular/platform-browser": "~5.1.3", "@angular/platform-browser-dynamic": "~5.1.3", "@angular/router": "~5.1.3", "@auth0/angular-jwt": "^1.1.0", "@types/lodash": "^4.14.104", "@types/node": "^9.6.5", "@wwwalkerrun/nativescript-ngx-magic": "^2.0.4", "allow-publish": "^1.0.4", "js-data": "^3.0.1", "js-data-http": "^3.0.0", "lodash": "^4.17.5", "nativescript-angular": "~5.3.0", "nativescript-badge-button": "^0.1.2", "nativescript-barcodescanner": "^2.7.3", "nativescript-bottombar": "^3.0.7", "nativescript-checkbox": "^3.0.3", "nativescript-exit": "^1.0.1", "nativescript-feedback": "^1.1.0", "nativescript-floatingactionbutton": "^4.1.3", "nativescript-image-cache-it": "^3.0.7", "nativescript-loading-indicator": "^2.4.0", "nativescript-localstorage": "^1.1.5", "nativescript-material-icons": "^1.0.3", "nativescript-ng-shadow": "^2.1.0", "nativescript-ng2-fonticon": "^1.3.4", "nativescript-ngx-fonticon": "^4.0.0", "nativescript-permissions": "^1.2.3", "nativescript-pro-ui": "^3.2.0", "nativescript-ripple": "^2.0.0", "nativescript-snackbar": "^2.0.0", "nativescript-theme-core": "~1.0.2", "nativescript-toast": "^1.4.6", "nativescript-web-image-cache": "^4.2.4", "reflect-metadata": "~0.1.8", "rxjs": "^5.5.7", "tns-core-modules": "^3.4.0", "zone.js": "~0.8.2" }, "devDependencies": { "@angular/compiler-cli": "~5.1.3", "@ngtools/webpack": "~1.9.4", "@types/jasmine": "^2.8.2", "babel-traverse": "6.4.5", "babel-types": "6.4.5", "babylon": "6.4.5", "codelyzer": "^4.0.2", "copy-webpack-plugin": "~4.3.0", "css-loader": "~0.28.7", "extract-text-webpack-plugin": "~3.0.2", "lazy": "1.0.11", "nativescript-dev-typescript": "^0.7.1", "nativescript-dev-webpack": "^0.9.2", "nativescript-worker-loader": "~0.8.1", "raw-loader": "~0.5.1", "resolve-url-loader": "~2.2.1", "tslint": "^5.8.0", "typescript": "2.5.0", "uglifyjs-webpack-plugin": "~1.1.6", "webpack": "~3.10.0", "webpack-bundle-analyzer": "^2.9.1", "webpack-sources": "~1.1.0" } }
tsconfig.json
{ "compilerOptions": { "target": "es5", "module": "commonjs", "declaration": false, "removeComments": true, "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, "lib": [ "es2015", "dom", "es6", "es2015.iterable" ], "pretty": true, "allowUnreachableCode": false, "allowUnusedLabels": false, "noImplicitAny": false, "noImplicitReturns": true, "noImplicitUseStrict": false, "noFallthroughCasesInSwitch": true, "typeRoots": [ "node_modules/@types", "node_modules" ], "types": [ "jasmine" ], "baseUrl": ".", "paths": { "*": [ "./node_modules/tns-core-modules/*", "./node_modules/*" ], "~/*": [ "app/*" ] } }, "exclude": [ "node_modules", "platforms", "**/*.aot.ts" ] }
Hi @MuhammadTahir92,
The given information is not enough to investigate the issue. Please provide more info about the problem and sample project, which could be used for debugging.
ERROR in node_modules/@angular/core/src/change_detection/differs/default_iterable_differ.d.ts(12,32): error TS2304: Cannot find name 'Iterable'.
node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(14,48): error TS2304: Cannot find name 'Iterable'.
my package.json is
tsconfig.json