PeculiarVentures / PKI.js

PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
http://pkijs.org
Other
1.25k stars 204 forks source link

Node.js build error #350

Closed sergeypayu closed 2 years ago

sergeypayu commented 2 years ago

I got an error after updating PKI.js to the latest version. It was introduced in 2.3.0 version (https://github.com/PeculiarVentures/PKI.js/commit/b3269eb4012679b4da1e5d865da016132761c242)

ERROR in ./node_modules/pkijs/src/ECPublicKey.js 3:0-44 Module not found: Error: Can't resolve './ECNamedCurves' in '/home/user/project/node_modules/pkijs/src'

line import ECNamedCurves from "./ECNamedCurves"; should be import ECNamedCurves from "./ECNamedCurves.js";

microshine commented 2 years ago

I've published pkijs@2.3.1. Please try it

sergeypayu commented 2 years ago

works perfectly now. thanks for quick response!