Projects

Routing recipes

Strategies and recipes for organising routes when using Nuxt Content.

Versions used are:

  • Nuxt 3.15.x
  • Nuxt UI-Pro 3.0.0-alpha.12
  • Nuxt Content 3.1.1
  • NuxtHub 0.8.17
  • pnpm 10.4.0

better-sqlite3: Could not locate bindings file

pnpm 10.4.0 introduced a new feature - postinstall scripts of dependencies are ignored by default. Unfortuately this causes builds to fail when using the github CI workflow as set up by NuxtHub. Local builds appear to be unaffected.

Error:  Could not locate the bindings file. Tried: 
# followed by many lines all containing paths that include `better_sqlite3`

NuxtHub Server API documentation

The Server API documentation within NuxtHub is not working as expected and enabling it causes builds to fail.

RollupError: virtual:#nitro-internal-virtual/server-handlers-meta (32:7): Identifier "_vtEFC3Meta" has already been declared
# followed by more lines

Module order

Although this is now explicit in the docs, it is easily missed. @nuxt/content must be listed after @nuxt/ui-pro.

nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@nuxt/ui-pro',
    '@nuxt/content'
    ]
})