Will it work for Angular 7? #35
Replies: 5 comments
-
No, you cannot use @panva/jose outside of Node.js or (recently released) Electron JS runtimes. No amount of transpiling and polyfills can make up for the design differences between node's |
Beta Was this translation helpful? Give feedback.
-
I am also facing these errors after installing [email protected] in my ExpressJs app node_modules/jose/types/index.d.ts:6:10 - error TS2305: Module '"crypto"' has no exported member 'KeyObject'. 6 import { KeyObject, PrivateKeyInput, PublicKeyInput } from 'crypto'; node_modules/jose/types/index.d.ts:6:21 - error TS2305: Module '"crypto"' has no exported member 'PrivateKeyInput'. 6 import { KeyObject, PrivateKeyInput, PublicKeyInput } from 'crypto'; node_modules/jose/types/index.d.ts:6:38 - error TS2305: Module '"crypto"' has no exported member 'PublicKeyInput'. 6 import { KeyObject, PrivateKeyInput, PublicKeyInput } from 'crypto'; is this known issue? any work around? SOLUTION: |
Beta Was this translation helpful? Give feedback.
-
@MuhammadBilalYar could it be your |
Beta Was this translation helpful? Give feedback.
-
@panva My bad, after updating version issue resolved. Thanks |
Beta Was this translation helpful? Give feedback.
-
A quick note, i've release a new major (v3.x) which is now a universal module with 0 dependencies and now works the same in the browser (using webpack 5 with no issues) as well as node. |
Beta Was this translation helpful? Give feedback.
-
I have Angular 7 based web-app, can i use this library in it. I tried integrating it, however i am getting "crypto"' has no exported member 'KeyObject' and other three.. i have nodeJs 12.7.0 installed
Beta Was this translation helpful? Give feedback.
All reactions