cakebake / markdown-themeable-pdf

ARCHIVED. NOT MAINTAINED. Themeable Markdown Converter (Print to PDF, HTML, JPEG or PNG)
https://atom.io/packages/markdown-themeable-pdf
133 stars 37 forks source link

Uncaught TypeError: The "path" argument must be of type string. Received type undefined #141

Closed sbarber51 closed 4 years ago

sbarber51 commented 4 years ago

[Enter steps to reproduce:]

  1. Open markdown file to convert
  2. hit "ctrl+shft+E"
  3. See error

Atom: 1.47.0 x64 Electron: 5.0.13 OS: Mac OS X 10.14.6 Thrown From: markdown-themeable-pdf package 1.2.1

Stack Trace

Uncaught TypeError: The "path" argument must be of type string. Received type undefined

At internal/validators.js:105

TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:105:11)
    at Object.join (path.js:1037:7)
    at Object.getConfigFilePath (/packages/markdown-themeable-pdf/lib/markdown-themeable-pdf.js:575:28)
    at /packages/markdown-themeable-pdf/lib/markdown-themeable-pdf.js:365:44
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:54:3)

Commands

     -0:07.8.0 markdown-themeable-pdf:export (div.line)

Non-Core Packages

markdown-themeable-pdf 1.2.1 
sbarber51 commented 4 years ago

This was from a fresh install of Atom

sbarber51 commented 4 years ago

Duplicate issue with known workarounds

chymian commented 4 years ago

ok, a workaround is no fix! and which duplicate? link? you want us to search through all issues? really?

12emerta commented 4 years ago

In case anyone needs it: There's workaround for it in #128. You need to open the folder as a project before trying to convert to PDF.

That wasn't so hard.