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

Uncaught TypeError: renderer_1.StyleSheet is undefined

Open Demiurge1979 opened this issue 1 year ago • 5 comments

Hello,

we got an Exception "Uncaught TypeError: renderer_1.StyleSheet is undefined" with the latest Versions. We have no idea, what was changed.

error

We also try an new empty project with the example coe from this page and got the same problem.

Can anybody help?

thanx Bjoern

Demiurge1979 avatar Jan 22 '24 14:01 Demiurge1979

Hi @Demiurge1979, this looks like a module loader issue. None of that has changed version to version. Do you not have the error with the previous version?

danomatic avatar Jan 22 '24 19:01 danomatic

Hi @danomatic, first of all I would like to thank you for your quick response. I took your inspiration once again as an opportunity to examine everything calmly, step by step. I took a last working version from December in which we used version 1.1.18. I specifically installed this again. I did the same thing with the packages for react-pdf (7.5.1) and @react-pdf/renderer (3.1.12). And actually, one of our program parts was running again. Then I updated the packages step by step. react-pdf-html and react-pdf can be updated to the latest versions. When I tried to install a version of @react-pdf/renderer > 3.1.17, I again got the error message described above. We'll test everything again tomorrow, but I think there's a problem with the combination of packages in the latest version. Thank you very much and have a nice evening Bjoern

Demiurge1979 avatar Jan 22 '24 21:01 Demiurge1979

@Demiurge1979 is this fixed for you with the latest version v1.3.7?

danomatic avatar Apr 03 '24 17:04 danomatic

@danomatic i will test it by the end of next week. On tuesday we have a big realease and i need all my concentration for this action.

Demiurge1979 avatar Apr 03 '24 21:04 Demiurge1979

Sounds good. Please also check out v2.0.2

danomatic avatar Apr 03 '24 22:04 danomatic

@Demiurge1979 I'm closing this but please ping if you're still having trouble.

danomatic avatar Jul 21 '24 20:07 danomatic