Skip to content

lstat No such file or directory #16

Description

@sezaru

Every time I try to run prettier to format some files, I get the following error:

$ ./_build/prettier_0.11.0 --parser typescript assets/tailwind.config.js
109504 | // index.ts
109505 | import {realpathSync as realpathSync2, lstatSync} from "fs";
109506 | var resolvedArgv = process.argv.slice(2).map((arg) => {
109507 |   if (arg.startsWith("-")) {
109508 |     return arg;
109509 |   const stats = lstatSync(arg);
                                  ^
ENOENT: No such file or directory
   errno: -2
 syscall: "lstat"

      at /$bunfs/root/prettier:109509:26
      at map (1:11)
      at /$bunfs/root/prettier:109505:45

Bun v1.1.27 (Linux x64 baseline)

I'm running Fedora 40, but I also tried in an Ubuntu instance with the same issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions