Skip to content

jsdoc path error on macOS but not Windows. #775

@GollyJer

Description

@GollyJer

Describe the bug

I'm unable to run eslint on macos bun eslint . throws this error.
I tried adding jsdoc: false to my config to turn off jsdoc linting but it doesn't seem to have an effect.

The same repo works when run on Windows.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (node:internal/validators:162:11)
    at join (node:path:1175:7)
    at file:///Users/jeremy/dev/__active/supptrack-app/node_modules/eslint-plugin-jsdoc/src/getJsdocProcessorPlugin.js:35:16

Reproduction

fresh install

System Info

System:
    OS: macOS 26.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 174.03 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - /opt/homebrew/bin/npm
    bun: 1.3.1 - /Users/jeremy/.bun/bin/bun
    Watchman: 2025.05.19.00 - /opt/homebrew/bin/watchman
  Browsers:
    Brave Browser: 139.1.81.135
    Chrome: 141.0.7390.123
    Firefox: 144.0
    Safari: 26.0.1

Used Package Manager

bun

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!)

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