cyntler / cyntler/react-doc-viewer

React Minified Error 300 when in production environment

Open
#294 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the crash in a CRA production build with the package versions 1.13–1.17, then compare production and development behavior around components importing react-pdf. No repository file or test is named; done would be a confirmed reproduction with the offending dependency or component behavior isolated and a documented fix path.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.