Working on a VSTS web extension and looking to utilize PDFmake.js
to generate a pdf
. The PDFmake.js
file needs to be imported into the node_nodules
folder by running npm install pdfmake
.
To import this JavaScript file into my TypeScript file, I'm following these steps:
import pdfmake = require("../node_modules/pdfmake/build/pdfmake");
However, when attempting this method, it results in the following error:
Severity Code Description Project File Line Suppression State
Error TS5055 Cannot write file 'D:/TFS/DM Helper Tools/DEV/WebExtension/RapidCCB/build/pdfmake.js' because it would overwrite input file. <Unknown> 1 Active