react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Can't resolve '@react-18-pdf/yoga'

Open Sebastian-Nielsen opened this issue 3 years ago • 2 comments

I successfully installed both npm i @react-18-pdf/renderer npm i @react-18-pdf/yoga

But upon building my app with npm start, I get:

ERROR in ./node_modules/@react-18-pdf/layout/lib/index.es.js 20:0-38
Module not found: Error: Can't resolve '@react-18-pdf/yoga' in 'C:\Users\...\node_modules\@react-18-pdf\layout\lib'

I have tried bundling into a tar file, but that just resulted in the same error upon running npm start.

You can see the exact steps I took to bundle the tar file here

Sebastian-Nielsen avatar Jul 04 '23 17:07 Sebastian-Nielsen

I'm having the same error. Has anyone got a fix on this one?

athanph avatar Dec 05 '23 09:12 athanph

@react-18-pdf/renderer isn't this package. Closing

diegomura avatar Jan 16 '24 01:01 diegomura