-
I'm trying to use Puppeteer to generate PDFs in a import puppeteer from "puppeteer";
export const loader: LoaderFunction = async () => {
console.log(puppeteer);
}; Running Node version: Note that everything works fine when the Puppeteer code is moved to a standalone file and executed through Any idea what's going wrong here? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Jun 18, 2022
Replies: 1 comment 1 reply
-
Try to move the puppeteer import to a .server file and import in your routes from there. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tavoyne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try to move the puppeteer import to a .server file and import in your routes from there.