Closed Remi-Toussaint closed 2 months ago
I don't know where you see the extends: ['@nuxthub/core']
but it is a module:
export default defineNuxtConfig({
// extends: ['@nuxthub/core'] <-- this is wrong
modules: ['@nuxthub/core']
})
Well, the doc actually says to "Add it to the extends
section in your nuxt.config
and set the remote
option to true
." You can check it out here: https://hub.nuxt.com/docs/getting-started/remote-storage#external-nuxt-projects
Damn, very sorry about this 🤦♂️
Fixed in https://github.com/nuxt-hub/core/commit/9f4a5f08be5915d15e468979780664f844be121c
Thank you for reporting 💚
Describe the bug When setting up an external Nuxt project with NuxtHub as a remote backend, following the documentation, running
npx nuxi prepare
results in the error:Steps to reproduce Create a fresh Nuxt project. Install
@nuxthub/core
(npm install @nuxthub/core
). Updatenuxt.config.ts
:Add
.env
variables:Run
npx nuxi prepare
. Error:Cannot read properties of undefined (reading 'options')
.Minimal reproduction https://stackblitz.com/edit/github-2psy6y-x8fxvc?file=nuxt.config.ts