auth0 / node-jwa

JSON Web Algorithms
http://tools.ietf.org/id/draft-ietf-jose-json-web-algorithms-08.html
MIT License
99 stars 41 forks source link

build error while using jsonwebtokens in Angular6 #28

Closed venkatesh-thatham closed 6 years ago

venkatesh-thatham commented 6 years ago

ERROR in ./node_modules/jwa/index.js Module not found: Error: Can't resolve 'crypto' in 'E:\My Code\mycode\pwa\node_modules\jwa'

omsmith commented 6 years ago

You've already reported this, and the answer is still the same. crypto, stream etc are all core node modules. In a browser environment they're generally poly-filled by by your bundler.

Try a fresh npm install, but otherwise you'll have to raise the issue with Angular or WebPack or whoever.

Ref: https://github.com/brianloveswords/node-jwa/issues/25