node-2fa icon indicating copy to clipboard operation
node-2fa copied to clipboard

Typing error with notp

Open OceanTechnic opened this issue 3 years ago • 0 comments

When trying to build my code, I got Module '"/path/node_modules/@types/notp/index"' has no default export from node_modules/node-2fa/dist/index.d.ts:1:8 After changing

import notp from "notp";

to

import * as notp from "notp";

in index.ts This error got fixed

;)

OceanTechnic avatar Feb 16 '22 17:02 OceanTechnic