-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SetImage Undefined #166
Comments
Same issue here... my component is placed in modal... |
Same issue here. |
Check if you have added 'ImageCropperComponent' in your ngModule declarations. |
How did you guys resolve this? For me it works only if I do not set this.cropperSettings.noFileInput = true; But then I cant style the Input field which is not very desirable |
In my case it worked adding the settings to the cropper object at the end of ngOnInit()
|
Hello, I am working in something similar, working for me with the following code:
you need to be sure that the image is loaded, before to set it. |
I ended up using the base64 provided to me by my backend system. |
Same problem here, trying to upload an image from a component and passing it to a modal (bsx) and then add it to the image cropper. |
Just crossed this frustrating issue and spent ~4 frustrating hours trying to find a solution.
This describes the problem https://stackoverflow.com/questions/34947154/angular-2-viewchild-annotation-returns-undefined , tried all the suggestions but nothing works for this particular case. After a coffe this came to my mind and works for me:
|
@analuisamartins thank you! |
@analuisamartins working for me, thank you! |
I had the same issue when using |
In my case, it was just an error importing Image, I was sending a wrong image model. |
@analuisamartins thank you !!!! it's working very very fine............................... |
it happened to me when I removed the this.data = {}; of the constructor, just add it again. |
Hi,
I am trying to load the image that I get from the server in my loadImage method but I keep getting the following error Cannot read property 'setImage' of undefined. Not sure why, any help would be much appreciated.
Here is my code below
The text was updated successfully, but these errors were encountered: