错误ReferenceError:未定义strXmlBullet-pptxgenjs

时间:2019-09-06 03:37:03

标签: angular8 pptxgenjs

尝试了多种更改tsconfig.json,angular.json的方法,但是它不起作用。

从下面的链接获取了参考,但没有任何帮助。

# https://github.com/gitbrent/PptxGenJS/issues/220
# https://github.com/angular/angular-cli/issues/10625
# https://stackoverflow.com/questions/55601669/module-not-found-error-        
cant-resolve-stream-in-c-dev-jszip-test-node-modul
# https://github.com/DevExpress/devextreme-angular/issues/776

我已经完成了以下集成工作:

npm install pptxgenjs
npm install stream

import * as pptGen from 'pptxgenjs';
var pptx = new pptGen();
var slide = pptx.addNewSlide();
slide.addText('Hello World!', { x:1.5, y:1.5, fontSize:18, color:'363636' 
});
pptx.save('Sample Presentation');

1 个答案:

答案 0 :(得分:0)

strXmlBullet未定义-pptxgenjs

我已经报告了该错误,而Brent已将其修复。

https://github.com/gitbrent/PptxGenJS/issues/587