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
> misskey@13.7.1 migrate H:\Works\misskey
> cd packages/backend && pnpm migrate
> backend@ migrate H:\Works\misskey\packages\backend
> pnpm typeorm migration:run -d ormconfig.js
Error during migration run:
Error: Unable to open file: "H:\Works\misskey\packages\backend\ormconfig.js". File URL path must be absolute
at CommandUtils.loadDataSource (H:\Works\misskey\node_modules\.pnpm\typeorm@0.3.11_ioredis@4.28.5+pg@8.9.0\node_modules\typeorm\commands\CommandUtils.js:22:19)
at async Object.handler (H:\Works\misskey\node_modules\.pnpm\typeorm@0.3.11_ioredis@4.28.5+pg@8.9.0\node_modules\typeorm\commands\MigrationRunCommand.js:41:26)
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
pnpm start
> misskey@13.7.1 start H:\Works\misskey
> cd packages/backend && node ./built/boot/index.js
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute
at new NodeError (node:internal/errors:399:5)
at getPathFromURLWin32 (node:internal/url:1463:11)
at fileURLToPath (node:internal/url:1493:22)
at finalizeResolution (node:internal/modules/esm/resolve:296:14)
at moduleResolve (node:internal/modules/esm/resolve:945:10)
at defaultResolve (node:internal/modules/esm/resolve:1153:11)
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 ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) {
code: 'ERR_INVALID_FILE_URL_PATH'
}
Node.js v18.14.1
ELIFECYCLE Command failed with exit code 1.
📝 Steps to Reproduce
1.pnpm clean
2.pnpm i
3.pnpm build
4.pnpm migrate or pnpm start
📌 Environment
Misskey version: 4e23500 ~(swcを使うコミットから)
Your OS: Windows 10 (No WSL)
The text was updated successfully, but these errors were encountered:
💡 Summary
Windows環境でswcでビルドするとパスの解決がうまくできずにビルドされて実行できない
backend/built/boot/index.js
🥰 Expected Behavior
正常に実行できる
🤬 Actual Behavior
pnpm migrate
pnpm start
📝 Steps to Reproduce
1.
pnpm clean
2.
pnpm i
3.
pnpm build
4.
pnpm migrate
orpnpm start
📌 Environment
Misskey version: 4e23500 ~(swcを使うコミットから)
Your OS: Windows 10 (No WSL)
The text was updated successfully, but these errors were encountered: