You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please specify what version of the library you are using......: [3.12.0]
Please specify what version(s) of PowerPoint you are targeting: [ ]
Please specify what web browser you are using.................: [Chromium 128.0.6613.84 ]
Desired/Observed Behavior
I am trying to draw a rectangle shape in my slide, but I get a "cannot read properties of undefined (reading 'rect')" error instead. It seems the enum of shapes isn't properly loaded in the library : when I console.log(pptxgen.ShapeType), I get undefined.
Steps to Reproduce
I am using the latest version of the library (3.12.0) with an angular 17 project in typescript. So far the library worked very well, but I stumbled across an issue I haven't figured out how to solve yet.
Issue Category
Product Versions
Desired/Observed Behavior
I am trying to draw a rectangle shape in my slide, but I get a "cannot read properties of undefined (reading 'rect')" error instead. It seems the enum of shapes isn't properly loaded in the library : when I console.log(pptxgen.ShapeType), I get undefined.
Steps to Reproduce
I am using the latest version of the library (3.12.0) with an angular 17 project in typescript. So far the library worked very well, but I stumbled across an issue I haven't figured out how to solve yet.
Here's my (simplified) code :
Did I miss something from the documentation ? https://gitbrent.github.io/PptxGenJS/docs/api-shapes/
Is this a bug ?
Edit : If I instead write the string "rect" directly instead of using the enum, it works as expected.
The text was updated successfully, but these errors were encountered: