Skip to content

TypeError: The "path" argument must be of type string. #3268

Closed

Description

@hahaha28

Description

  • Can you reproduce the issue?

Steps to reproduce

  1. set upload image by command line .
  2. use screenshot software to catch a image and save in clipboard.
  3. paste in Marktext.

Expected behavior:

upload image

Actual behavior:

Uncaught (in promise) TypeError: The "path" argument must be of type string. Received type number (1653197731056)
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at new NodeError (node:internal/errors:371:5)
    at validateString (node:internal/validators:119:11)
    at Object.join (node:path:1172:7)
    at uploadByCommand (fileSystem.js?1f2b:158:1)
    at FileReader.reader.onload (fileSystem.js?1f2b:228:1)

Link to an example: [optional]

Versions

  • MarkText version: 0.17.1
  • Operating system: macOS Monterey

Activity

  1. dalianzhu commented on May 30, 2023

    @dalianzhu

    same issue

    It's unfortunate that this project seems to be inactive.

  2. added
    🐛 bug
    🐞 pri/critical
    on May 16, 2026
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

    🐛 bug🐞 pri/critical

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions