N
Nuxt3mo ago
_maurodf

Impossible to Host on NuxtHub

Hi everyone. Some of my projects (one already online and one i want to deploy on Nuxthub) gave me same errors when try to deploy. Here the errors: Error: [@nuxt/robots] The ./public/_robots.txt file contains errors: Error: Could not load @nuxthub/core. Is it installed? Error: Could not load @nuxthub/core. Is it installed? Error: Command failed with exit code 1: npx 'nuxi@3.20.0' module add hub Error: Command failed with exit code 1: npx 'nuxi@3.20.0' module add hub Error: Process completed with exit code 1. Nuxthub is installed (this site is already deploied on NuxtHub on https://maurodefalco.it/) Attached the full screen Thanks
No description
2 Replies
kapa.ai
kapa.ai3mo ago
Hi @_maurodf. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information in the knowledge sources, here are some possible causes and troubleshooting steps for the errors you are encountering when deploying to NuxtHub: 1. Could not load @nuxthub/core. Is it installed? - The NuxtHub integration requires the @nuxthub/core module to be installed and registered in your nuxt.config.ts. The recommended way is to use the command:
npx nuxi module add hub

npx nuxi module add hub

This should both install the module and register it. If you see errors with this command, ensure your project dependencies are up to date and that your environment allows installing new modules. Double-check your package.json and nuxt.config.ts to confirm that @nuxthub/core is present and correctly configured. If you are running this in a CI/CD environment, make sure the environment has write permissions and network access to install packages from npm.
NuxtHub deployment guide 2. [@nuxt/robots] The ./public/_robots.txt file contains errors: - This error suggests there is a problem with your robots.txt file. Check the file for syntax errors or invalid content. The Nuxt Content documentation mentions that NuxtHub templates often use Nuxt Robots for automatic robots.txt generation, so if you have a custom file, ensure it is valid and does not conflict with the module's expectations.
Canvas template features 3. General troubleshooting: - Make sure you are using compatible versions of Nuxt, Nuxt Content, and NuxtHub. If you recently upgraded Nuxt or any modules, try deleting node_modules and package-lock.json (or yarn.lock), then reinstall dependencies. - If the error persists, try running the problematic commands locally to see if you get more detailed error output. - If you are deploying an already working site and it suddenly fails, check for recent changes in your dependencies or configuration that might have introduced incompatibilities. If after these checks the problem remains, the knowledge sources recommend reaching out to the Nuxt team or community for further support, as there may be an environment-specific or recent issue not covered in the documentation. I'm sorry, but the knowledge sources do not provide more specific troubleshooting steps for this exact error scenario. If you need more targeted help, consider sharing your nuxt.config.ts and relevant parts of your project with the NuxtHub community or support channels for further assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@1004702547069644830> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?