Not able to find tns core modules


#1

Could not find folder: /Users/admin/Desktop/Hieber/platforms/ios/Hieber/app/tns_modules/tns-core-modules

i have tried to
rm -rf platforms/
rm -rf node_modules/
tns platform add ios@next
tns run ios

but nothing works for me

My package.json
"dependencies": {
"@angular/common": “~4.0.0”,
"@angular/compiler": “~4.0.0”,
"@angular/core": “~4.0.0”,
"@angular/forms": “~4.0.0”,
"@angular/http": “~4.0.0”,
"@angular/platform-browser": “~4.0.0”,
"@angular/platform-browser-dynamic": “~4.0.0”,
"@angular/router": “~4.0.0”,
"@ngx-translate/core": “^6.0.1”,
"@ngx-translate/http-loader": “0.0.3”,
“email-validator”: “^1.0.7”,
“latest-version”: “^3.1.0”,
“moment”: “^2.18.1”,
“nativescript-angular”: “3.0.0”,
“nativescript-background-http”: “2.5.1”,
“nativescript-camera”: “3.0.0”,
“nativescript-couchbase”: “^1.0.17”,
“nativescript-imagepicker”: “^2.5.1”,
“nativescript-iqkeyboardmanager”: “^1.0.1”,
“nativescript-pdf-view”: “^1.2.1”,
“nativescript-plugin-firebase”: “3.11.0”,
“nativescript-sqlite”: “^1.1.3”,
“nativescript-theme-core”: “~1.0.3”,
“reflect-metadata”: “~0.1.8”,
“rxjs”: “5.2.0”,
“tns-core-modules”: “^3.0.0”,
“tns-platform-declarations”: “^2.4.4”
},
“devDependencies”: {
“nativescript-dev-android-snapshot”: “^0..”,
“nativescript-dev-typescript”: “~0.3.5”,
“typescript”: “~2.2.0”,
“zone.js”: “^0.8.2”
}

tsconfig.json
{
“compilerOptions”: {
“module”: “commonjs”,
“target”: “es5”,
“experimentalDecorators”: true,
“emitDecoratorMetadata”: true,
“noEmitHelpers”: true,
“noEmitOnError”: false,
“lib”: [
“es2016”
],
“baseUrl”: “.”,
“paths”: {
"": [
"./node_modules/tns-core-modules/
",
"./node_modules/"
]
}
},
“exclude”: [
“node_modules”,
“platforms”,
"**/
.aot.ts",
“typingz-i386”,
“typingz-x86_64”
]
}


#2

Well, you should at least update nativescript-dev-typescript with npm i nativescript-dev-typescript@latest --save-dev. That fixes your tsconfig.json file which misses bits.