meteor-pdf-tutorial icon indicating copy to clipboard operation
meteor-pdf-tutorial copied to clipboard

Error ENOENT : pokemon-report.pdf !!!

Open mokaid opened this issue 8 years ago • 2 comments

Hi Ryan ... Development environment is windows I did follow the tutorial step by step but at the last stage I am receiving this error

I20161028-12:59:51.434(4)? { [Error: ENOENT: no such file or directory, open 'C:\meteor\meteor-pdf-tutorial.meteor\local\build\programs\server\pokemon-report.pdf'] I20161028-12:59:51.435(4)? errno: -4058, I20161028-12:59:51.435(4)? code: 'ENOENT', I20161028-12:59:51.436(4)? syscall: 'open', I20161028-12:59:51.436(4)? path: 'C:\meteor\meteor-pdf-tutorial.meteor\local\build\programs\server\pokemon-report.pdf' }

How come the missing file is the file I wanna generate !? Your advice is highly appreciated

mokaid avatar Oct 28 '16 09:10 mokaid

Hi!

That error means that the pdf was never created. This is likely a result of Phantom JS not working properly. Are you sure you have added this package? meteor add dfischer:phantomjsAlso, this may be a Windows issue. I know people often have trouble with npm modules on Windows. I work in a Unix environment so I wouldn't be able to help if its related to your dev environment.

ryanswapp avatar Oct 28 '16 16:10 ryanswapp

I have the same issue

=> App running at: http://localhost:3000/ I20161211-18:17:14.461(-5)? Commencing webshot... I20161211-18:17:14.462(-5)? { [Error: ENOENT, open 'pokemon-report.pdf'] errno: 34, code: 'ENOENT', path: 'pokemon-report.pdf' }

I tried adding phantomjs package and running again with the same result. I am also running a unix environment.

Jeffs-MacBook-Pro:final jlevensailor$ meteor add dfischer:phantomjs dfischer:phantomjs without a version constraint has already been added.

levensailor avatar Dec 11 '16 23:12 levensailor