Open harrismcc opened 8 months ago
I was running into this issue and had to manually install pako.
Hello! Did you solve the problem after all? I'm facing the same thing :(
@harrismcc Did you manage to resolve this issue?
Same problem here. Any updates for this?
This issue seems similar to https://github.com/diegomura/react-pdf/issues/2335. Even though Babel isn't mentioned, it might be useful to look at the solution there.
Installing pako
fixed the issue for me initially, but I think using packageExtensions
from #2335 is a better solution. It shows why pako
is needed by fixing missing dependencies. Installing pako
alone might be confusing for other developers since it isn’t used directly in the code.
Describe the bug When I try to use react-pdf in my react app, I get the following error messages from Webpack (5.76.2). Using react 17.0.2, and babel/core 7.14.2. I'm including the polyfill for
browserify-zlip
in my webpack config, but it's still having these issues.To Reproduce In my webpack config, I have the following for
resolve
(note, there is other stuff in there for other libraries)Desktop (please complete the following information):