Comments (8)
In my opinion the both problems are different. I was able to reproduce the problem with tns livesync ios --watch
while using nativescript-ui-samples-angular project and I opened new issue in nativescript-cli. @kinggolf, you could keep track on new issue.
About the problem, reported from @gregersen79. Could you verify, whether you are using latest nativescript-angular
. You could use the below-attached package.json
file to verify, whether all dependencies are up to date. After upgrading the nativescript-imagepicker, you should also delete node_modules
and platforms
folders and then to rebuild the app: tns run <platform name>
.
package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.sample"
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/router": "3.2.1",
"nativescript-angular": "1.2.0",
"nativescript-theme-core": "^0.2.1",
"reflect-metadata": "~0.1.8",
"rxjs": "5.0.0-beta.12",
"tns-core-modules": "2.4.4"
},
"devDependencies": {
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "^0.3.2",
"typescript": "~2.0.10",
"zone.js": "~0.6.21"
}
}
Let me know, whether this helps.
from nativescript-imagepicker.
Hi @Leo-lay,
Could you provide some more info about the problem. I tested your case, however was unable to reproduce this behavior. For testing I used nativescript-ui-samples-angular and install nativescript-imagepicker
, however after I import the plugin as it is shown above, I am still unable to reproduce the problem.
It would help if you could provide sample project, which could be debugged locally.
Regards,
@tsonevn
from nativescript-imagepicker.
@tsonevn @Leo-lay
Just installed this plugin & came across this same exact issue by running "tns livesync ios --watch" to a device (iPhone6S).
Then I switched to simulator and the app started OK.
So I went back to a device and ran "tns run ios" without issue.
Tried again "tns livesync ios --watch" and got the error.(???)
My package.json:
{
"description": "Cobbl0",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "com.cobbl.cobbl0",
"tns-android": {
"version": "2.4.1"
},
"tns-ios": {
"version": "2.4.0"
}
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/router": "3.2.1",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^2.2.1",
"email-validator": "1.0.7",
"nativescript-angular": "1.2.0",
"nativescript-camera": "0.0.8",
"nativescript-fresco": "1.0.12",
"nativescript-imagepicker": "^2.4.1",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-ng2-fonticon": "1.3.3",
"nativescript-social-share": "1.3.1",
"nativescript-telerik-analytics": "*",
"nativescript-telerik-ui": "1.5.1",
"nativescript-theme-core": "^0.2.1",
"nativescript-unit-test-runner": "^0.3.4",
"reflect-metadata": "~0.1.8",
"rxjs": "5.0.0-beta.12",
"tns-core-modules": "2.4.2"
},
"devDependencies": {
"babel-traverse": "6.20.0",
"babel-types": "6.20.0",
"babylon": "6.14.1",
"lazy": "1.0.11",
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "^0.3.2",
"typescript": "~2.0.10",
"zone.js": "~0.6.21"
}
}
from nativescript-imagepicker.
Hi @kinggolf,
Could you verify, whether you are using latest NativeScript 2.4.2
, while using tns --version
? You could try to delete node_modules
, platforms
, hooks
folders and to clear npm cache with npm cache clear
. Then try to run your project again with tns livesync ios --watch
.
Hope this helps.
Regards,
@tsonevn
from nativescript-imagepicker.
Thank you @tsonevn. Confirmed the project was running NativeScript 2.4.2. I followed your suggestions, removed folders and cleared cache. After npm install and added platforms again tns info showed this:
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.4.2 │ 2.4.2 │ Up to date │
│ tns-core-modules │ 2.4.3 │ 2.4.3 │ Up to date │
│ tns-android │ 2.4.1 │ 2.4.1 │ Up to date │
│ tns-ios │ 2.4.0 │ 2.4.0 │ Up to date │
I did update tns-core-modules to 2.4.3, but changed nothing else.
tns livesync ios --watch
still gave an error as follows -
***** Fatal JavaScript exception - application has been terminated. ***** Native stack trace: 1 0x1005f5dc0 -[TNSRuntime executeModule:referredBy:]
tns run ios
still works.
I always get these warnings with project still working:
CONSOLE WARN file:///app/tns_modules/nativescript-telerik-ui/listview/listview.js:382:14: The TypeScript constructor "TKListViewDataSourceImpl" will not be executed.
CONSOLE WARN file:///app/tns_modules/nativescript-telerik-ui/listview/listview.js:524:14: The TypeScript constructor "ExtendedListViewCell" will not be executed.
from nativescript-imagepicker.
After updating image picker to version 2.4.1, I also get the "Property scrollDirection already registered for type ListViewLayoutBase" error:
1 0x10f7b7a6b NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
2 0x10ff3790e ffi_closure_unix64_inner
3 0x10ff382c2 ffi_closure_unix64
4 0x10e8439a4 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:]
5 0x10e86e41e -[UICollectionView touchesEnded:withEvent:]
6 0x110f759c8 -[TKCollectionView touchesEnded:withEvent:]
7 0x10e11d847 forwardTouchMethod
8 0x10e11d910 -[UIResponder touchesEnded:withEvent:]
9 0x110ee3a43 -[TKListViewCell touchesEnded:withEvent:]
10 0x10ff3811d ffi_call_unix64
11 0x12c634b10
file:///app/tns_modules/ui/core/dependency-observable.js:73:28: JS ERROR Error: Property scrollDirection already registered for type ListViewLayoutBase.
tns info:
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.4.2 │ 2.4.2 │ Up to date │
│ tns-core-modules │ 2.4.3 │ 2.4.3 │ Up to date │
│ tns-android │ 2.4.1 │ 2.4.1 │ Up to date │
│ tns-ios │ 2.4.0 │ 2.4.0 │ Up to date │
package.json dependencies:
"dependencies": {
"nativescript-appversion": "1.3.2",
"nativescript-background-http": "2.4.0",
"nativescript-google-maps-sdk": "1.4.2",
"nativescript-imagecropper": "0.0.7",
"nativescript-imagepicker": "2.4.1",
"nativescript-ios-uuid": "1.0.0",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-local-notifications": "1.2.0",
"nativescript-permissions": "1.2.2",
"nativescript-phone": "1.2.3",
"nativescript-push-notifications": "0.0.19",
"nativescript-slides": "2.2.5",
"nativescript-social-share": "1.3.1",
"nativescript-telerik-ui-pro": "1.5.1",
"tns-core-modules": "2.4.3"
},
from nativescript-imagepicker.
I am having Property scrollDirection already registered for type ListViewLayoutBase. error even with "tns run ios --emulator" command T_T
from nativescript-imagepicker.
Ok, I finally installed the [email protected] which solve my problem...
from nativescript-imagepicker.
Related Issues (20)
- Error on multiple number of picking Calling js method onStart failed
- I can only select files from the Screenshots and Camera directories
- iOS src is empty HOT 9
- Imagepicker do not take 100% height HOT 1
- [android]error not easy to "filter" HOT 1
- Can ImagePicker be used to select videos from camera roll? If not, any suggestions? HOT 2
- Feature request: Better errors
- [IOS]multiple dependencies with different sources for `QBImagePickerController` issue when install with @nstudio/nativescript-camera-plus HOT 1
- How can i select directly from Gallery rather than downloads
- Plugin translation
- [android] No path for returned image(s) HOT 1
- JS: TypeError: Cannot read property 'startActivityForResult' of undefined
- Class constructor Observable cannot be invoked without 'new' Nativescript 7.0.0 HOT 3
- IOS on dismiss picker canceled error is not fired
- Plug-in does not work in NativeScript 8 HOT 2
- Android: How to get file extension of images selected using @nativescript/imagepicker HOT 1
- What is the migration guide from NS-6 to NS-8 for nativescript-imagepicker?
- "fromAsset() is deprecated. Use ImageSource.fromAsset()" while using ImageSource.fromAsset()
- [Image Picker] Images in iPhone Library not visible
- Can't set permisssions on Android 12 (can't authorize) [nativescript-imagepicker] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-imagepicker.