Replies: 1 comment
-
| 
 You don't need to upgrade node itself (altho yes that's the ultimate recommendation), but maybe you can upgrade just the types. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I try to use jose for a project .
We use TypeScript
NodeJS version is 10.17. Upgrade NodeJs is not possible.
Compiling...
Using tsc v2.3.4
node_modules/jose/types/index.d.ts(6,10): error TS2305: Module '"crypto"' has no exported member 'KeyObject'.
node_modules/jose/types/index.d.ts(6,21): error TS2305: Module '"crypto"' has no exported member 'PrivateKeyInput'.
node_modules/jose/types/index.d.ts(6,38): error TS2305: Module '"crypto"' has no exported member 'PublicKeyInput'.
'KeyObject' is not part of API of Crypto for nodeJs 10.17. What your recommendation except to upgrade nodeJS ?
Thanks for your help
Nicolas
Beta Was this translation helpful? Give feedback.
All reactions