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<
154
154
geistMonoFont instanceof Uint8Array
155
155
) {
156
156
// conversion with Polyfill needed because docxjs requires Buffer
157
- const Buffer = ( await import ( "buffer" ) ) . Buffer ;
157
+ const Buffer = ( await import ( "buffer" ) ) . default . Buffer ;
158
158
159
159
if ( interFont instanceof ArrayBuffer ) {
160
160
interFont = Buffer . from ( interFont ) ;
@@ -243,7 +243,7 @@ export class DOCXExporter<
243
243
try {
244
244
if ( ! globalThis . Buffer ) {
245
245
// load Buffer polyfill because docxjs requires this
246
- globalThis . Buffer = ( await import ( "buffer" ) ) . Buffer ;
246
+ globalThis . Buffer = ( await import ( "buffer" ) ) . default . Buffer ;
247
247
}
248
248
return Packer . toBlob ( doc ) ;
249
249
} finally {
You can’t perform that action at this time.
0 commit comments