Skip to content
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

Error 503 on windows #6

Open
5 tasks done
NicolaSpadari opened this issue Jul 17, 2022 · 0 comments
Open
5 tasks done

Error 503 on windows #6

NicolaSpadari opened this issue Jul 17, 2022 · 0 comments

Comments

@NicolaSpadari
Copy link

NicolaSpadari commented Jul 17, 2022

Describe the bug

I'm trying to start a basic barebone project with nuxt-server-fn, and while I know it's still wip, trying to create a simple function like the one in the examples hello.ts just crashes the server.
The error it shows is:

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: 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:'
    at new NodeError (node:internal/errors:372:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1068:11)
    at defaultResolve (node:internal/modules/esm/resolve:1148:3)
    at ESMLoader.resolve (node:internal/modules/esm/loader:536:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:250:18)
    at ModuleWrap. (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36)

Using the latest "nuxt": "3.0.0-rc.5", Node 17.6.0, almost no other dependencies, empty project.
If I remove nuxt-server-fn from the nuxt.config.ts module section, it starts correctly.

Reproduction

A regular install and run of a project

System Info

System:
  OS: Windows 10 10.0.22000
  CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
  Memory: 23.12 GB / 31.92 GB
Binaries:
  Node: 17.6.0 - c:\program files\nodejs\node.EXE
  Yarn: 1.22.19 - c:\program files\nodejs\yarn.CMD
  npm: 8.5.1 - c:\program files\nodejs\npm.CMD
Browsers:
  Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.49)
  Internet Explorer: 11.0.22000.120

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant