-
Notifications
You must be signed in to change notification settings - Fork 25
Closed as duplicate of#923
Labels
needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Description
What information was incorrect, unhelpful, or incomplete?
On Windows Ì get the following error on latest main when trying to start yari. Both power shell and cmd prompt. I deleted my node directory too.
Worked yesterday.
C:\github\mdn\content>yarn start
yarn run v1.22.22
$ yarn -s info:fred && yarn up-to-date-check && env-cmd --silent cross-env CONTENT_ROOT=files NODE_ENV=production FRED_PLAYGROUND_LOCAL=true FRED_PLAYGROUND_PORT=5043 FRED_PORT=5042 FRED_WRITER_MODE=true fred-server
🐥 This command is now using fred: https://github.com/mdn/fred
🐞 Please report any issues here: https://github.com/mdn/fred/issues/new?template=bug.yml
$ node scripts/up-to-date-check.js
[server] TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///home/runner/work/fred/fred/node_modules/fdir/dist/index.mjs'
[server] at createRequire (node:internal/modules/cjs/loader:1887:13)
[server] at Object.29443 (file:///C:/home/runner/work/fred/fred/node_modules/fdir/dist/index.mjs:6:33)
[server] at c (file:///C:/home/runner/work/fred/fred/utils/mdn-url2breadcrumb.js:28:1)
[server] at Object.33065 (file:///C:/home/runner/work/fred/fred/components/server/async-local-storage.js:4:55)
[server] at c (file:///C:/home/runner/work/fred/fred/utils/mdn-url2breadcrumb.js:28:1)
[server] at Object.57443 (file:///C:/home/runner/work/fred/fred/node_modules/@lit-labs/ssr/lib/render-result.js:16:1)
[server] at c (file:///C:/home/runner/work/fred/fred/utils/mdn-url2breadcrumb.js:28:1)
[server] at file:///C:/home/runner/work/fred/fred/webpack/runtime/module_chunk_loading:50:9
[server] at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
[server] at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:647:26)
[server] node "C:\github\mdn\content\node_modules\@mdn\fred\server.js" exited with code 1
--> Sending SIGTERM to other processes..
[rari] "C:\github\mdn\content\node_modules\@mdn\rari\bin\rari.exe" serve -vv exited with code 1
All tasks completed successfully.
node:internal/process/promises:392
new UnhandledPromiseRejection(reason);
^
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".
at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)
at processPromiseRejections (node:internal/process/promises:475:17)
at process.processTicksAndRejections (node:internal/process/task_queues:106:32) {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v22.18.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
``
### What did you expect to see?
Being able to start yari :)
### Do you have any supporting links, references, or citations?
_No response_
### Do you have anything more you want to share?
_No response_Metadata
Metadata
Assignees
Labels
needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.Triage needed by staff and/or partners. Automatically applied when an issue is opened.