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.
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";
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 beimport ECNamedCurves from "./ECNamedCurves.js";