I have an Angular2 app inside Electron. Now, I would like to use the @pokusew/pcsclite library to use NFC functionality. This library uses native Node.js module
@pokusew/pcsclite
Add the allowJs option in your tsconfig.json like this: as fabian lauer said also add outDir option to specify where your compiled files will be:
allowJs
tsconfig.json
outDir
{ "compilerOptions": { "outDir": "./built", <--- add this "allowJs": true, <--- and this "target": "es5" }, "include": [ "./src/**/*" ] }