尝试了多种更改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');
答案 0 :(得分:0)