-
Notifications
You must be signed in to change notification settings - Fork 248
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
getContext failing when deployed #79
Comments
This is happening to me also unit testing with PhantomJS. Trying to figure out what's wrong, I would try to PR if I found it. |
Hi @rwwagner90, |
Hi @Elecash, can you create an example with your unit test? |
Hi @simobasso Basically I have a directive that contains My unit test:
Error thrown:
I'm doing some research right now, I will tell you if I find anything. |
That's not the problem, I already have all my templates with $templateCache. For the moment I'm just going to disable those tests. So far everything is working, is just those tests. I would try to fix it next week tho. Anyway, good work with the library, it worked better than other libraries that I've tested 😄 |
Thanks! We wait your pull request! |
- add karma-ng-html2js-preprocessor dependance to use viewer template - add karma.proxies to serve the pdf file maybe help sayanee#79
- add karma-ng-html2js-preprocessor dependance to use viewer template - add karma.proxies to serve the pdf file maybe help sayanee#79
At the end I've made my own |
@simobasso @Elecash Is the example you are referring to just tests? I am having this issue just using the directive inside of a modal |
@rwwagner90 can you reproduce on jsbin/jsfiddle? |
@rwwagner90 have you seen #12? |
@simobasso I have seen that issue. I will create an example for you guys, at some point, but I can't right now. |
Can we keep this open until I have a chance to make an example and make sure we get it all sorted out? |
yes, my bad. I've referenced the issue in a pull request. sorry. |
This issue is more than 3 months old and there hasn't been much activity on it. Closing, but please re-open it with a pull request on the bug 🤗 |
I'm not sure if this is an error with this library or the fact I am putting it in a UI Bootstrap modal or what exactly is happening, but everything works flawlessly locally, then when I deploy I get an error with getContext.
The problem is, getElementById('pdf-canvas') does not seem to be working, so the element is not there for some reason. Locally the element is there, but deployed it is not.
Any ideas?
The text was updated successfully, but these errors were encountered: