-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with windows and Nuxt3 #86
Comments
Same, here's my error:
ENVWindows 10
"dependencies": {
"highlight.js": "11.7.0",
"vue-gtag-next": "1.14.0"
},
"devDependencies": {
"autoprefixer": "10.4.13",
"nuxt": "3.0.0",
"postcss": "8.4.19",
"prettier": "2.8.0",
"tailwindcss": "3.2.4",
"typescript": "4.9.3",
"vue-tsc": "1.0.11"
},
"engines": {
"node": ">= 18.12.1"
} |
Same error on
|
Anyone got this to work? |
Same mistake. |
Hey guys, I maybe solved the issue. Create a file named export default [
{ UserAgent: '*' },
{ Disallow: '/' },
{ BlankLine: true },
{ Comment: 'Comment here' },
{ Sitemap: (req) => `https://${req.headers.host}/sitemap.xml` }
] This solved the issue for me |
@Gumbraise What you done is a workaround. The issue is not in the robots module itself |
Thanks! This also work for me |
This also work for me. Thanksssssss a lot. |
Workaround worked for me in Nuxt 3 as well.
|
Since this seems to be the current fix, make sure that the set values align with your
|
https://github.com/nuxt-community/robots-module/issues/64
ERROR [worker reload] [worker init] Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' at new NodeError (node:internal/errors:371:5) at defaultResolve (node:internal/modules/esm/resolve:1016:11) at ESMLoader.resolve (node:internal/modules/esm/loader:422:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40) at link (node:internal/modules/esm/module_job:75:36)
The text was updated successfully, but these errors were encountered: