[Bug]: ERR_UNSUPPORTED_ESM_URL_SCHEME #731

Closed
opened 2026-02-28 19:15:30 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @th3c0d3br34ker on GitHub (Nov 14, 2023).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Unable to run yarn start using actualbudget/actual-server on windows.

Node version: v18.16.1
actualbudget/actual-server version: v23.11.0

What error did you receive?

Checking if there are any migrations to run for direction "up"...
Rejection: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default 
ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'e:'
    at new NodeError (node:internal/errors:399:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1059:11)
    at defaultResolve (node:internal/modules/esm/resolve:1135:3)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at importModuleDynamically (node:internal/modules/cjs/loader:1188:29)
    at importModuleDynamicallyWrapper (node:internal/vm/module:429:21)
    at importModuleDynamically (node:internal/vm:106:46) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

No response

Operating System

Windows 11

Originally created by @th3c0d3br34ker on GitHub (Nov 14, 2023). ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? Unable to run `yarn start` using `actualbudget/actual-server` on windows. Node version: `v18.16.1` `actualbudget/actual-server` version: `v23.11.0` ### What error did you receive? ```bash Checking if there are any migrations to run for direction "up"... Rejection: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'e:' at new NodeError (node:internal/errors:399:5) at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1059:11) at defaultResolve (node:internal/modules/esm/resolve:1135:3) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ESMLoader.import (node:internal/modules/esm/loader:525:22) at importModuleDynamically (node:internal/modules/cjs/loader:1188:29) at importModuleDynamicallyWrapper (node:internal/vm/module:429:21) at importModuleDynamically (node:internal/vm:106:46) { code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME' } ``` ### Where are you hosting Actual? Locally via Yarn ### What browsers are you seeing the problem on? _No response_ ### Operating System Windows 11
GiteaMirror added the bug label 2026-02-28 19:15:30 -06:00
Author
Owner

@MatissJanis commented on GitHub (Nov 16, 2023):

https://github.com/tj/node-migrate/issues/201

@MatissJanis commented on GitHub (Nov 16, 2023): https://github.com/tj/node-migrate/issues/201
Author
Owner

@MrScriptX commented on GitHub (Nov 17, 2023):

Maybe a temporary fork to fix the issue should be done, or maybe a downgrade ? Currently, actual is broken on Windows and the issue link is open since August with no PR opened yet.

@MrScriptX commented on GitHub (Nov 17, 2023): Maybe a temporary fork to fix the issue should be done, or maybe a downgrade ? Currently, actual is broken on Windows and the issue link is open since August with no PR opened yet.
Author
Owner

@MatissJanis commented on GitHub (Nov 18, 2023):

I don't have Windows, so sadly I can't reproduce and thus fix it. If anyone is able to repro: a patch PR would be more than welcome.

In the meantime I would recommend using the docker version of Actual. That will work in all environments

https://actualbudget.org/docs/install/docker#launch-container-using-docker-command

@MatissJanis commented on GitHub (Nov 18, 2023): I don't have Windows, so sadly I can't reproduce and thus fix it. If anyone is able to repro: a patch PR would be more than welcome. In the meantime I would recommend using the docker version of Actual. That will work in all environments https://actualbudget.org/docs/install/docker#launch-container-using-docker-command
Author
Owner

@MikesGlitch commented on GitHub (Nov 19, 2023):

I fixed the migrate package for windows here (the PR is in draft): https://github.com/tj/node-migrate/pull/202

I think it should work but would someone on Linux be able to check it still works there?

If you clone it down you can just update your Actual Server package.json "migrate" dependency with:

"migrate": "file:../node-migrate",

where the path is the path to the repo.

@MikesGlitch commented on GitHub (Nov 19, 2023): I fixed the migrate package for windows here (the PR is in draft): https://github.com/tj/node-migrate/pull/202 I think it should work but would someone on Linux be able to check it still works there? If you clone it down you can just update your Actual Server package.json "migrate" dependency with: "migrate": "file:../node-migrate", where the path is the path to the repo.
Author
Owner

@MatissJanis commented on GitHub (Nov 22, 2023):

Should be solved now. Please let us know if the issue still persists.

@MatissJanis commented on GitHub (Nov 22, 2023): Should be solved now. Please let us know if the issue still persists.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#731