-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How use package with meteor 1.3? #9
Comments
Hey jmlv, I'll update the Readme accordingly tomorrow. |
with npm package same problem :) |
Same issue here, any solution? |
Also, trying to use the NPM package by itself gives me an error where fs.readFileSync is not defined. How did you make this package work? |
Same thing here ! I belive that fonts.js is making some problem. To novice and amateur to figure what is that problem. |
I'm having the same problem as well and I'm using it in my Meteor application. Did anyone get it to work? |
I couldn't figure this out so I ended up using the pdfmake-browserified npm package. |
I tried the pdfmake-browserified npm package and it works! Thanks a lot @EddyBorja. |
Today I tried using pdfmake with Meteor and had the same 'cannot read property of undefined' error. I am needing the pdf to be created server side, so was not able to use the pdfmake-browserified version. So I decided to investigate the issue. It turns out to be to do with pdfmake using 'lodash' which conflicts with underscore used in Meteor (both want to use the '_' variable. The solution, while not ideal was to install erasaur:meteor-lodash (which gives you a 'lodash' variable) and then comment out in the pdfmake/src code any '_' = require('lodash') commands. Then going through the pdfmake replacing the _. commands with lodash. commands. As I say, not ideal - but I have now got it producing PDF's. Hope this helps someone. |
and got
The text was updated successfully, but these errors were encountered: