cyntler / react-doc-viewer

File viewer for React.
https://cyntler.github.io/react-doc-viewer
Apache License 2.0
392 stars 127 forks source link

React Minified Error 300 when in production environment #294

Open Faix-dot opened 1 month ago

Faix-dot commented 1 month ago

Today our react app (CRA) kept crashing with this error https://react.dev/errors/300 without a stack trace , only this link with the instructions to use the development mode to get extra information.

The problem is it crashed only in build mode , the cause was this package. I tried changing versions , changing my code but the error persisted in any components that imported this package.

I cleared node_modules , tried every version from 1.13 to 1.17.

I only ask if you can replicate it and see maybe what's causing it. Might also be some errore inside react-pdf since the error talks about returning before a useEffect