File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/xl-docx-exporter/src/docx Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class DOCXExporter<
154154 geistMonoFont instanceof Uint8Array
155155 ) {
156156 // conversion with Polyfill needed because docxjs requires Buffer
157- const Buffer = ( await import ( "buffer" ) ) . Buffer ;
157+ const Buffer = ( await import ( "buffer" ) ) . default . Buffer ;
158158
159159 if ( interFont instanceof ArrayBuffer ) {
160160 interFont = Buffer . from ( interFont ) ;
@@ -243,7 +243,7 @@ export class DOCXExporter<
243243 try {
244244 if ( ! globalThis . Buffer ) {
245245 // load Buffer polyfill because docxjs requires this
246- globalThis . Buffer = ( await import ( "buffer" ) ) . Buffer ;
246+ globalThis . Buffer = ( await import ( "buffer" ) ) . default . Buffer ;
247247 }
248248 return Packer . toBlob ( doc ) ;
249249 } finally {
You can’t perform that action at this time.
0 commit comments