You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.tsmodule section, it starts correctly.
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 exampleshello.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 thenuxt.config.ts
module
section, it starts correctly.Reproduction
A regular install and run of a project
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: