#Error on fresh install @nuxt/a11y
2 messages · Page 1 of 1 (latest)
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.randomUUIDexists (modern Node / browser). [AI chat setup]
Your error strongly suggests that:
- You’re running in an environment where
crypto.randomUUIDis not available (older Node or a non‑standard runtime), or - Some code in
@nuxt/a11y(or your project) is callingcrypto.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]