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: htmlToPdf.create(...).toStream is not a function #7

Closed SirKitboard closed 6 years ago

SirKitboard commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.16 System: Microsoft Windows 10 Pro Thrown From: markdown-themeable-pdf package, v0.9.1

Stack Trace

Uncaught TypeError: htmlToPdf.create(...).toStream is not a function

At C:\Users\Aditya\.atom\packages\markdown-themeable-pdf\lib\markdown-themeable-pdf.js:433

TypeError: htmlToPdf.create(...).toStream is not a function
  at C:\Users\Aditya\.atom\packages\markdown-themeable-pdf\lib\markdown-themeable-pdf.js:433:20
  at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

Commands

     -0:09.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:07.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:07.1.0 markdown-themeable-pdf:export (atom-text-editor.editor)

Config

{
  "core": {}
}

Installed Packages

# User
markdown-pdf, v1.3.9
markdown-preview-plus, v2.1.1
markdown-themeable-pdf, v0.9.1

# Dev
No dev packages
cakebake commented 9 years ago

Can you enter some steps to reproduce?

thecodejuicer commented 9 years ago

I have also seen this issue on Windows 7 with Atom v 1.0.19 with markdown-themeable-pdf package, v0.9.3.

It was thrown when I right-clicked on the open markdown text and selected "Markdown to PDF". You may want to reopen this issue.

cakebake commented 9 years ago

Which packages have you installed? Maybe duplicate of #3

thecodejuicer commented 9 years ago

I believe I have markdown-pdf installed as well. I'll try uninstalling that and see what happens. If that doesn't fix it I'll do some binary deduction testing on other packages and let you know what I find.

cakebake commented 9 years ago

Thanks for your help!! I could not reproduce the problem, as I have said so far. :/

sander76 commented 9 years ago

I had the same issue. Disabled markdown-pdf and your plugin works now... Nice !

thecodejuicer commented 9 years ago

That worked for me as well. Looks like it is just a package conflict.

cakebake commented 9 years ago

Strange... I will try to catch the errors of required packages better... Maybe this helps users who have those conflicts...

ajdfajdfl2003 commented 8 years ago

Maybe it's because you install this package before you install markdown-pdf. markdown-pdf and this package are conflicts, so make sure you are removed markdown-pdf. Then restart Atom.

cakebake commented 8 years ago

A conflict is of course not desirable. As soon as I can reproduce the behavior, I can do something about! For this reason, the issue remains open :)