hub
Nuxt Hub how I can use crypto.createSign as I get "[unenv] crypto.createSign is not implemented yet!" π
2 Replies
Hi @Isu. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not contain enough information to provide a solution for using crypto.createSign with Nuxt Hub or how to work around the "[unenv] crypto.createSign is not implemented yet!" error.
From the available sources, we know that Nuxt (and its Nitro server engine) uses unenv to polyfill Node.js APIs in non-Node environments, such as Cloudflare Workers or when targeting edge/serverless platforms. However, not all Node.js APIs are fully implemented in unenv, and crypto.createSign is one of those not yet supported. This is why you see the "[unenv] crypto.createSign is not implemented yet!" error when trying to use it in such environments.
There is no documented workaround or alternative provided in the knowledge sources for this specific limitation. If you require crypto.createSign, you may need to run your code in a Node.js environment where the native crypto module is available, rather than in an environment that relies on unenv polyfills. Alternatively, you could follow the progress of unenv or contribute to its development for this feature.
If you have further questions about Nuxt Hub or need help with a different aspect of Nuxt, feel free to ask!
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@219508202830561281> Kapa.ai is still learning and improving, please let me know how I did by reacting below.