Versions used are:
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`
// fixed by adding the following to package.json
"pnpm": {
"onlyBuiltDependencies": [
"better-sqlite3"
]
}
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
// default config for NuxtHub apps causes the error
nitro: {
experimental: {
// Enable Server API documentation within NuxtHub
openAPI: true
}
},
// fixed by commenting out the offending line
nitro: {
experimental: {
// DISABLE Server API documentation within NuxtHub
// openAPI: true
}
},
Although this is now explicit in the docs, it is easily missed. @nuxt/content must be listed after @nuxt/ui-pro.
export default defineNuxtConfig({
modules: [
'@nuxt/ui-pro',
'@nuxt/content'
]
})