diff --git a/src/utils/qr.ts b/src/utils/qr.ts index 6aa1df3e0..98f50fa6f 100644 --- a/src/utils/qr.ts +++ b/src/utils/qr.ts @@ -3,7 +3,7 @@ import * as qrcode from 'qrcode-generator' export const getQrData = (payload: string, type?: 'data' | 'svg' | 'ascii'): string => { const typeNumber: TypeNumber = 0 const errorCorrectionLevel: ErrorCorrectionLevel = 'L' - const qr = qrcode.default(typeNumber, errorCorrectionLevel) + const qr = qrcode(typeNumber, errorCorrectionLevel) try { qr.addData(payload) qr.make() diff --git a/tsconfig.json b/tsconfig.json index 304cecef5..04fe7fd1c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,6 @@ "lib": ["es2015", "es2017.string", "dom"], "module": "commonjs", "declaration": true, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, "outDir": "./dist", "typeRoots": ["./node_modules/@types", "./src/typings"], "sourceMap": true,