#Error on fresh install @nuxt/a11y

2 messages · Page 1 of 1 (latest)

lavish masonBOT
#

Hi @lusty elk. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources you provided don’t mention @nuxt/a11y or the crypto.randomUUID is not a function error, so I can’t give a confirmed, package‑specific fix.

What I can say based on the sources:

  • crypto.randomUUID() is used in the Nuxt AI chat example to generate IDs in a Drizzle schema. [AI chat setup]
  • That code assumes a runtime where crypto.randomUUID exists (modern Node / browser). [AI chat setup]

Your error strongly suggests that:

  1. You’re running in an environment where crypto.randomUUID is not available (older Node or a non‑standard runtime), or
  2. Some code in @nuxt/a11y (or your project) is calling crypto.randomUUID() without a fallback.

Since there’s no direct mention of @nuxt/a11y or this error in the knowledge sources, I can’t point to an official Nuxt fix or configuration option.

Given these limits, the only grounded suggestions I can make are:

  • Ensure you’re using a modern Node version that supports crypto.randomUUID (the Nuxt repo has been updating its required Node engines to match dependencies). [Install fails; engines.node update]
  • If the error comes from your own code (similar to the AI chat example), replace crypto.randomUUID() with another ID generator that works in your environment. [AI chat setup]

Because the sources don’t cover @nuxt/a11y or this exact error, I can’t provide a more precise, documented fix.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: