Open jayandh06 opened 7 years ago
hi, i am getting an error when i add 'var AWS = require('aws-sdk'); ' this line in app.component.ts file in native script. how to fix it?
hi, i am getting an error when i add 'var AWS = require('aws-sdk'); ' this line in app.component.ts file in native script. how to fix it?
@himanshu331 have you found the solution?
I've got the same issue with tns run ios
command. Any update on this?
I get following error when running application.
Note:
Below error is thrown only when node_modules directory is present in the project. To work around the issue i have to clear the node_modules directory every time (annoying) and run the command
$tns debug ios
Error:
$ tns debug ios
Executing before-prepare hook from /Users/jayandhanrajasundaram/Documents/workspace/PCA-MobileApp/hooks/before-prepare/nativescript-dev-android-snapshot.js Executing before-prepare hook from /Users/jayandhanrajasundaram/Documents/workspace/PCA-MobileApp/hooks/before-prepare/nativescript-dev-typescript.js Found peer TypeScript 2.2.2 Executing before-prepare hook from /Users/jayandhanrajasundaram/Documents/workspace/PCA-MobileApp/hooks/before-prepare/nativescript-nodeify.js Cannot find module 'file-system/file-system-access' Sending exception report (press Ctrl+C to stop).....PACKAGE.JSON
{
/ Project info is skipped /
"nativescript": { "id": "org.nativescript.BlueCare", "nodeify": { "package-dependencies": { "aws-sdk": [ { "xml/browser_parser": "xml/node_parser" } ] } }, "tns-ios": { "version": "2.5.0" }, "tns-android": { "version": "2.5.0" } }, "dependencies": { "@angular/common": "2.4.3", "@angular/compiler": "2.4.3", "@angular/core": "2.4.3", "@angular/forms": "2.4.3", "@angular/http": "2.4.3", "@angular/platform-browser": "2.4.3", "@angular/platform-browser-dynamic": "2.4.3", "@angular/router": "3.4.3", "amazon-cognito-identity-js": "^1.8.0", "jsonwebtoken": "7.2.1", "nativescript-angular": "1.4.0", "nativescript-checkbox": "^1.2.8", "nativescript-geolocation": "0.0.19", "nativescript-nodeify": "0.5.3", "nativescript-oauth": "1.3.0", "nativescript-telerik-ui": "^1.6.2", "nativescript-theme-core": "1.0.2", "nativescript-unit-test-runner": "0.3.0", "node-uuid": "1.4.7", "reflect-metadata": "0.1.8", "rxjs": "5.0.1", "tns-core-modules": "2.5.0", "tslib": "^1.6.0" }, "devDependencies": { "babel-traverse": "6.23.1", "babel-types": "6.23.0", "babylon": "6.16.1", "filewalker": "0.1.2", "jasmine-core": "^2.5.2", "karma": "^1.5.0", "karma-jasmine": "^1.1.0", "karma-nativescript-launcher": "^0.4.0", "lazy": "1.0.11", "nativescript-dev-android-snapshot": "^0..", "nativescript-dev-typescript": "^0.3.5", "typescript": "latest", "zone.js": "~0.7.2" }, "scripts": { "tsc": "tsc" }
}