How to set dependency overrides / module not found?

Ultimate problem is that @react-pdf/renderer throws this error:

Module not found: Can’t resolve ‘yoga-layout’?

I found a solution that worked locally ( in the picture ), however when I push the app to meteor galaxy/cloud, it seems like overrides are ignored and wrong versions are installed. Any help or suggestions are welcome!

@react-pdf/renderer”: “3.4.4”,

“overrides”: {
@react-pdf/layout”: “3.6.4”,
@react-pdf/textkit”: “4.3.0”,
@react-pdf/image”: “2.2.2”,
@react-pdf/pdfkit”: “3.1.2”
}

Found a solution, not sure if everything here is necessary. It works for now, I dont want to touch it

/// package.json under dependencies
@react-pdf/layout”: “3.6.3”,
@react-pdf/textkit”: “4.3.0”,
@react-pdf/image”: “2.2.2”,
@react-pdf/pdfkit”: “3.1.2”,
@react-pdf/renderer”: “3.1.12”,

},
“overrides”: {
@react-pdf/layout”: “3.6.3”,
@react-pdf/textkit”: “4.3.0”,
@react-pdf/image”: “2.2.2”,
@react-pdf/pdfkit”: “3.1.2”,
@react-pdf/renderer”: “3.1.12”
}

Gotta love pdf:s :laughing: :melting_face: