question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack 5 support

See original GitHub issue

Describe the bug I just install @react-pdf/renderer, zlib was missing, I installed it too. Now the file /zlib_bindings is missing.

Logs

$ /Users/_/_/node_modules/.bin/encore dev --watch
Running webpack ...

 ERROR  Failed to compile with 1 errors                                                        19:33:28

Module build failed: Module not found:
../node_modules/zlib/lib/zlib.js contains a reference to the file ./zlib_bindings.
This file can not be found, please check it for typos or update it if the file got moved.

Desktop:

  • OS: MacOS Big Sur 11.0.1
  • Browser Safari 14.0.1
  • React-pdf version (“@react-pdf/renderer”: “^2.0.2”)

Can someone help me to get this file ? Thank you !

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
diegomuracommented, Apr 9, 2021

You don’t need to install zlib. Try uninstalling it. Can you check your package-lock.json or yarn.locl file and share who’s importing zlib ?

0reactions
Vennisha-Naidoocommented, Aug 2, 2022

I need your module, but I can’t use it, help me please !

Hi. Was this issue solved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack 5 release (2020-10-10)
Webpack 5 adds support for some CommonJs constructs, allows to eliminate unused CommonJs exports and track referenced export names from require ...
Read more >
facebook/create-react-app - Webpack 5 support overview
Overview of tasks needed for updating CRA to Webpack 5 - Some of the work will support both Webpack 4 + 5 but...
Read more >
What's New in Webpack 5 - Frontend Digest
webpack 5 also brings a new experiments configuration option with support for WebAssembly, Async Web Assembly, Top Level Await, and outputting your bundle ......
Read more >
Webpack 5 Adoption - Next.js
Improved Long Term Caching of Assets: Deterministic code output that is less likely to change between builds; Improved Tree Shaking; Support for assets...
Read more >
Upgrading Webpack 4 → 5 | Square Corner Blog
Webpack 5 Gains · Decreased bundle size by 27-28% · Decreased build time by 10% (2m 54s → 2m 36s) · Cached dev...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found