diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.72k stars 1.17k forks source link

Using react-pdf with meteor js #220

Closed windgaucho closed 6 years ago

windgaucho commented 6 years ago

Hello I am trying to use react-pdf package (0.7.6 version) in a meteor js application, using react.js. I can not use webpack because meteor has its own build tool, so I can not use transform-loader also, there is another solution to use this package inside meteor js app ?

diegomura commented 6 years ago

Hi @windgaucho To be honest, I don't know. Currently for the browser you need to do that specific setup with webpack. I think the answer you should be looking is how to replicate that config on meteor, which I don't know if it's possible. Sorry for not being more helpful

windgaucho commented 6 years ago

@diegomura thank you anyway. I will try to resolve the problem and let you know in case some one else had the same problem.

pmogollons commented 6 years ago

Hi @windgaucho,

Were you able to use it? Im using meteor 1.7 and is working fine when rendering in server code. You just need to import the following as per the docs.

import 'regenerator-runtime/runtime';

Cheers.

windgaucho commented 6 years ago

Hi @pmogollons I didn't try with meteor 1.7. I ended up using pdfmake that works with meteor 1.6

diegomura commented 6 years ago

It should work now with the new v1.0.0-alpha.X version