robots icon indicating copy to clipboard operation
robots copied to clipboard

`v3.0.0-1`: page could not be found

Open dargmuesli opened this issue 3 years ago • 1 comments

When I simply enable the '@nuxtjs/robots' module using Nuxt bridge v3.0.0-27639120.e7a7f9b, I get the following error:

...
✔ Generated public .output/public                                                                                             nitro 22:46:27
ℹ Initializing prerenderer                                                                                                    nitro 22:46:27
ℹ Prerendering 1 routes                                                                                                       nitro 22:46:41

 ERROR  [h3] [unhandled] This page could not be found                                                                               22:46:42

  at createError (node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:191:15)
  at nodeHandler (node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:381:21)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async ufetch (node_modules/.pnpm/[email protected]/node_modules/unenv/runtime/fetch/index.mjs:9:17)
  at async generateRoute (node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:2535:17)
  at async prerender (node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:2565:22)
  at async node_modules/.pnpm/@[email protected]_sz4l2dz37qxtrukeof3aez25wu/node_modules/@nuxt/bridge-edge/dist/chunks/module.mjs:361:7
  at async Nuxt.callHook (node_modules/.pnpm/[email protected]/node_modules/hable/dist/hable.js:1:959)
  at async Builder.build (node_modules/.pnpm/@[email protected]_m56akxypyp7f72pxuiucyg54wm/node_modules/@nuxt/builder-edge/dist/builder.js:264:5)
  at async Object.invoke (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/build.mjs:41:5)
  at async _main (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/cli.mjs:46:20)

  ├─ /robots.txt (802ms) (Error: [404] Internal Server Error)                                                                 nitro 22:46:42
start Building server...                                                                                                      nitro 22:46:42
...

Accessing /robots.txt when running the built output results in a 404 as well. I tried using options and a config file too, but that yields no change. If that issue is not already on the radar and not reproducible for someone else, I can set up a codesandbox of course.

dargmuesli avatar Jul 31 '22 20:07 dargmuesli

possible problem with the bridge, I will analyze

ricardogobbosouza avatar Aug 02 '22 00:08 ricardogobbosouza

~I have the same issue with nuxt 3~ nvm, I got confused

dargmuesli avatar Oct 07 '22 05:10 dargmuesli