Unable to push deployment config when using @react-pdf/renderer
Hi,
I am using
@react-pdf/renderer
in one of my node actions but having issues in deployment.
I have added convex.json
file alongside package.json
file as follows:
Can someone please confirm if this package has some known issue when used with Convex's node runtime?
Thanks
9 Replies
Are you using
@react-pdf/renderer
only from a file with "use node" at the top, and are any other files importing that file?
No known issues, and the repo for that library says it works on Lambdait's only one action with 'use node' at the top and it imports another one which has the layout
pdf.ts
But does any other file import this file?
no this file only exports the action and it's not imported by any other file
Is Document.js a "use node" file too?
nope
This error message is saying Document.js can't be analyzed as a non-"use node" file
so either move Document outside of the convex/ directory, or add "use node" to it
Oh it worked after adding 'use node' on the Document.tsx file
thank you so much for your help 🙂
sorry to miss that part in the error message.
Not on you, it could be clearer!