Closed samliaw closed 6 years ago
Hi @samliaw,
Can you check if you will have the same issue, while using the latest nativescript-imagepicker 6.0.3
, NativeScript 4.2
and nativescript-angular 6.1
? Bear in mind that you need to update the version of all angular dependencies as well. I am attaching sample package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.blankng",
"tns-android": {
"version": "4.2.0"
},
"tns-ios": {
"version": "4.2.0"
}
},
"dependencies": {
"@angular/animations": "6.1.1",
"@angular/common": "6.1.1",
"@angular/compiler": "6.1.1",
"@angular/core": "6.1.1",
"@angular/forms": "6.1.1",
"@angular/http": "6.1.1",
"@angular/platform-browser": "6.1.1",
"@angular/platform-browser-dynamic": "6.1.1",
"@angular/router": "6.1.1",
"kinvey-nativescript-sdk": "3.11.6",
"nativescript-accelerometer": "2.0.1",
"nativescript-angular": "6.1.0",
"nativescript-intl": "3.0.0",
"nativescript-theme-core": "1.0.4",
"nativescript-imagepicker": "^6.0.3",
"reflect-metadata": "0.1.12",
"rxjs": "6.2.2",
"tns-core-modules": "4.2.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11",
"nativescript-dev-typescript": "0.7.2",
"tns-platform-declarations": "4.2.0",
"typescript": "~2.7.2"
}
}
If the problem persists, please send us a sample project, which can be used for debugging.
I have the nativescript-imagepicker installed few months and it is always working fine. However, when I test it today, i encounter intermediate issue.
I am using Visaul Studio Code and I import the nativescript-imagepicker as follow
import * as imagepicker from "nativescript-imagepicker";
It doesn't provide any error message or it doesn't say the file is not found. I have also double confirmed that nativescript-imagepicker does exist under node_modules folder.I try to uninstall and reinstall nativescript-imagepicker and also issue the command "rm -rf node_modules platforms". These helps for the first time when i start the application. I notice if theimagepicker is available, I will be able to see the following messages in console
After I make changes to my code and rebuild using command "tns run android", I will see the following error
I have also install nativescript-ui-core since it is one of the dependencies. I am very sure all the 3 dependencies are installed. Below is my package.json file
I run out of ideas on how to troubleshoot this issue. Any thing I need to look at?