anvilresearch / webcrypto

W3C Web Cryptography API for Node.js
MIT License
82 stars 14 forks source link

Cannot find module '../algorithms/RSASSA-PKCS1-v1_5' #79

Closed hovenko closed 6 years ago

hovenko commented 6 years ago

Exception trace in Chrome:

Error: Cannot find module '../algorithms/RSASSA-PKCS1-v1_5'
    at webpackEmptyContext (algorithms sync:2)
    at SupportedAlgorithms.normalize (SupportedAlgorithms.js:84)
    at SubtleCrypto.importKey (SubtleCrypto.js:279)
    at RSASSA_PKCS1_v1_5.importKey (RSASSA-PKCS1-v1_5.js:124)
    at Function.importKey (JWA.js:113)
    at Function.importKey (JWK.js:46)
    at JWKSet.js:62
    at Array.map (<anonymous>)
    at Function.importKeys (JWKSet.js:61)
    at Function.from (RelyingParty.js:97)

A couple of error cases with details of library versions are described here: https://stackoverflow.com/questions/52780613/cannot-find-module-algorithms-rsassa-pkcs1-v1-5-using-angular-6-and-rdflib-0-1/52806376#52806376

dmitrizagidulin commented 6 years ago

As mentioned in the comment to the PR, this library is explicitly not for Webpack use (and must be excluded -- see linked comment for instructions).