-
Notifications
You must be signed in to change notification settings - Fork 666
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
cannot read property 'opts' of null #17
Comments
Hi, Thanks for reporting this. What version are you using? Also note that if you are running this on your local browser, you'll need to enable local file access (e.g.: Chrome flag "--allow-file-access-from-files") |
Hi,
My version is 1.1.2
2016-12-20 12:10 GMT+08:00 Brent Ely <[email protected]>:
… Hi,
Thanks for reporting this.
What version are you using?
Also note that if you are running this on your local browser, you'll need
to enable local file access (e.g.: Chrome flag "--allow-file-access-from-
files")
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANOW-UvBhNU2G0rvm-1uU65vNkpVyd51ks5rJ1VMgaJpZM4LQiBO>
.
|
Thanks. The images not loading is related to local file access. However, the uncaught error you helpfully screen-grabbed is in the table building loop. Could you show me the code you're using to specify a table by any chance? |
I have the same problem with an image not being loaded: The problem could be the response from the server: 304 Not Modified. What happens is chrome sends the request with the header:
The server in response says it hasn't changed with a 304 status code. I guess this isn't handled in the PptxGenJS code which makes it fail later on when the image is used. EDIT: On further testing I now always seem to get this error even if I use a incognito window and get the image with a 200 response. |
Thanks again for all the information. I've updated the library with fixes that should address all of the issues you've encountered. Please try again using the most recent |
thanks for solving our issue. I had re-npm install pptxgenjs and allowed local file access but the same error message appeared again. |
Oh, i should have asked how you were obtaining the library... I hadn't pushed an update to NPM yet, I had just staged the package file, so your update did not pull in any new files. I've updated the NPM release to 1.1.3 now, so please update and let me know if these issues are now fixed. |
Okay, version 1.1.3-2 has been pushed to npm. Try that out and let me know.
|
Hi, both problems has been solved. thank you very much! |
Good to hear! Thanks for reporting these issues and working through them. |
Hello
I have this issue:
![image 058](https://cloud.githubusercontent.com/assets/13866745/21307638/662b767e-c611-11e6-8bc3-ae27efbafc15.png)
it sometimes can't load the image I put in my local directory.(sometimes it works)
this is my code: pptx.addNewSlide().addImage({x:1.75, y:1.81, w:7.2, h:2.31,path:'datalog/assets/img/KYEC.png'});
The text was updated successfully, but these errors were encountered: