Mati Tucci

Results 17 comments of Mati Tucci

If you are using Next.js you can import it like this: ```js import dynamic from 'next/dynamic' const htmlToDraft = dynamic(() => import('html-to-draftjs'), { ssr: false }) ```

You can change the timeout in the ngDraggable.js:111

if you do: ```js pdf.create(html, { phantomPath: path.resolve( process.cwd(), "node_modules/phantomjs-prebuilt/bin/phantomjs" ), }) ``` it works?

yeah, I know. I'm asking if that worked for you.

Thanks for the details! I just tried it and still didn't work 😢 Btw, how are you creating the PDF? `toStream`, `toBuffer` or `toFile`?

Same :( ```js wn /var/task/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) events.js:292 throw er; // Unhandled 'error' event ^ Error [ERR_STREAM_DESTROYED]: Cannot call write after a...

It works 💪 😄 Thanks!

Anyone achieved this on Vercel by any chance?

Hi! I still have to finish some stuff and be sure that the component is stable. Once I finish with that I would like to implement this. Thanks for the...