Skip to content

Cant run with yarn dlx #20

Open
Open

Description

@HigherOrderLogic

Describe the bug

When I try yarn dlx broz antfu.me, the Electron runtime throw an error:

(node:101256) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `electron --trace-deprecation ...` to show where the warning was created)
App threw an error during load
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/xfs-4712ec11/dlx-101218/.yarn/cache/broz-npm-0.6.0-4a16e5b391-9261071705.zip/node_modules/broz/index.js' imported from /tmp/xfs-4712ec11/dlx-101218/.yarn/unplugged/electron-npm-37.2.0-794ae6d8a9/node_modules/electron/dist/resources/default_app.asar/main.js
    at finalizeResolution (node:internal/modules/esm/resolve:279:11)
    at moduleResolve (node:internal/modules/esm/resolve:870:10)
    at defaultResolve (node:internal/modules/esm/resolve:994:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:780:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:704:25)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:687:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:305:38)
    at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:643:36)
    at TracingChannel.tracePromise (node:diagnostics_channel:344:14)
    at ModuleLoader.import (node:internal/modules/esm/loader:642:21)

Reproduction

N/A. I just run the command in the terminal so I dont really know how to provide a minimal repoduction.

System Info

System:
    OS: Linux 6.14 Fedora Linux 42 (Workstation Edition)
    CPU: (12) x64 AMD Ryzen 5 PRO 4650GE with Radeon Graphics
    Memory: 6.49 GB / 13.55 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 22.16.0 - /tmp/xfs-d38cee7e/node
    Yarn: 1.22.22 - /tmp/xfs-d38cee7e/yarn // although the version shown here is v1, I'm running it with yarn berry
    npm: 10.9.2 - /usr/bin/npm
    pnpm: 10.12.4 - /usr/local/bin/pnpm

Used Package Manager

yarn

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.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions