nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
412 stars 30 forks source link

Error "Only URLs with a scheme in: file, data are supported by the default ESM loader." #64

Closed realandrew closed 1 year ago

realandrew commented 2 years ago

When I install the package (v3.0.0-1) and add @nuxtjs/robots to modules in nuxt.config.js (I'm using NuxtJS v3.0.0-rc.6) when loading the site it errors out with:

 ERROR  [worker reload] [worker init] Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'                  18:48:05  

  at new NodeError (node:internal/errors:372:5)
  at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1120:11)
  at defaultResolve (node:internal/modules/esm/resolve:1200:3)
  at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
  at link (node:internal/modules/esm/module_job:78:36)

this only happens with this module enabled so I'm pretty confident this is the cause. This is with no settings set for the module.

PikaDude commented 2 years ago

I'm also having this issue too, Nuxt v3.0.0-rc.8 and it's definitely from this module

maxtaube commented 2 years ago

I am having this issue too

esaesa commented 1 year ago

Same for me with"nuxt": "3.0.0-rc.13" and "@nuxtjs/robots": "^3.0.0-2", when i run npm run dev but no problem with build or generate

P4sca1 commented 1 year ago

This issue only occurs on Windows

50l3r commented 1 year ago

I confirm that issue only occurs on Windows

ricardogobbosouza commented 1 year ago

Not a problem with this module. See https://github.com/nuxt/nuxt.js/issues/15500