wobsoriano / nuxt-proxy

Http-proxy middleware for Nuxt 3.
MIT License
92 stars 9 forks source link

Cannot start in Windows #18

Closed teamboot88 closed 1 year ago

teamboot88 commented 1 year ago

I cannot start in Windows.

reproduction : https://github.com/teamboot88/reproduction

When I remove proxy property from nuxt.config.js, it's working.

[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 'c:'                                 04:43:50  

  at new NodeError (node:internal/errors:387:5)
  at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1017:11)
  at defaultResolve (node:internal/modules/esm/resolve:1097:3)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
  at link (node:internal/modules/esm/module_job:75:36)
gitekDev commented 1 year ago

Same problem

wobsoriano commented 1 year ago

Can you try v0.3.8?

teamboot88 commented 1 year ago

Unfortunately, still not working. I deleted /node_modules, yarn.lock and reinstalled all.

wobsoriano commented 1 year ago

Fixed in https://github.com/wobsoriano/nuxt-proxy/releases/tag/v0.3.11

teamboot88 commented 1 year ago

Sorry.. but still not working with same error log.

wobsoriano commented 1 year ago

I’ll try on my windows machine tomorrow 😀

wobsoriano commented 1 year ago

Fixed in https://github.com/wobsoriano/nuxt-proxy/releases/tag/v0.3.12

teamboot88 commented 1 year ago

It works perfectly. Thanks !