Closed Xyrai closed 4 months ago
Adding a robots.config.ts
file to the root of your project now works with Nuxt 3.6.1
. Is there any clarification of why adding this file manually fixes the issue, since it is not mentioned in the README
.
Can confirm this happening with nuxt 3.6.1. The workaround of using robots.config.ts
works.
Thanks for this workaround - fixes this issue on 3.6.2.
We've just experienced this exact same issue, and the underlying issue was actually the fact that some of our imports in TypeScript required .js
extensions, otherwise the resolver would create paths like C:/foo/bar
instead of file://C:/foo/bar.mjs
in the .nuxt
output.
I hope this can help others that run into this nearly undebuggable issue.
Hey there 👋
I am currently experiencing an error on my Windows (11) machine when trying to install the
@nuxtjs/robots 3.0.0
package onnuxt 3.6.1
.Error Log
Node version: 18.15.0
List of things I tried out so far without success:
Using the edge version of Nuxt https://github.com/nuxt/framework/issues/4232#issuecomment-1345385724
Creating a
robots.config.ts
file https://github.com/nuxt-modules/robots/issues/86#issuecomment-1366121300Here is a repository containing a replica of the error: https://github.com/Xyrai/nuxt-robots-windows-error/tree/main Additional link to Sandbox, this runs fine since it is not build on a Windows container.