#Creating a new project with deno fails

5 messages · Page 1 of 1 (latest)

forest widgetBOT
#

Hi @magic cedar. 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 you're encountering the "Failed to load native binding" error when creating a new Nuxt project with Deno on an ARM64 Mac (Apple Silicon).

Based on the knowledge sources, there are several recent issues with native bindings in Nuxt projects, especially related to the oxc-parser package, which Nuxt uses internally. These issues often manifest as "Failed to load native binding" or "Cannot find module" errors, particularly on non-x64 architectures (like ARM64) or when using alternative runtimes such as Deno.

Key points from the sources:

  • The oxc-parser package now relies on native binaries for specific platforms and architectures. If a native binary for your platform (e.g., ARM64 Mac or certain Linux/FreeBSD/Android ARM64) is missing or not installed correctly, you will see this error. This has been reported for ARM64 and FreeBSD, and the maintainers are working on providing more native builds for these architectures. There is also mention of npm not always installing optional dependencies correctly, but you are already on npm 11.3.0, which should have this fixed Deployment Failure on ARM64 (linux-arm64-gnu) after Nuxt 3.17.1 Update due to oxc-parser.

  • There is no explicit documentation or confirmation in the knowledge sources that Deno is fully supported for all Nuxt features or that all native dependencies (like oxc-parser) have ARM64 Mac binaries available for Deno-based projects. The Deno installation guide is referenced, but no troubleshooting for this specific error is provided docs: provide nuxt installation guide with deno.

#

Summary:
The knowledge sources confirm that this is a known issue related to native bindings (oxc-parser) and platform support, especially for ARM64 and alternative runtimes like Deno. There is no official workaround or fix documented for your specific scenario (Deno + ARM64 Mac). The maintainers are aware and working on providing more native builds, but at this time, you may encounter this error until those are available.

If you need to proceed urgently, you might consider using Node.js (LTS) instead of Deno for now, as it is the most tested and supported environment for Nuxt projects Installation.

If you want to track progress or report your specific case, you can follow or comment on the related GitHub issues:

Let me know if you need more details or help with a Node.js-based setup.

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

#

@magic cedar Kapa.ai is still learning and improving, please let me know how I did by reacting below.

primal berry
#

Yeah, same issue here.