Upgrade react-fast-pdf and webpack#80160
Conversation
|
|
955a888 to
d9564d2
Compare
|
@QichenZhu Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
💡 Codex Reviewhttps://github.com/Expensify/App/blob/d9564d29f72ecb8c6446e373944a3461ab63e0a2/patches/pdfjs-dist/pdfjs-dist+5.4.296+001-fix-worker-was-terminated-error.patch#L20-L24 The patch replaces ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
patches/pdfjs-dist/pdfjs-dist+5.4.296+001-fix-worker-was-terminated-error.patch
Outdated
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp (N/A. Testing is blocked.)android-native.movAndroid: mWeb Chromeandroid-web.moviOS: HybridAppios-native.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safarimac-web.mov |
|
Testing on Android: HybridApp is blocked because it fails to upload PDFs. android-native-bug.webm |
…act-fast-pdf-and-webpack
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
This has also happened to me. It appears to be resolved after pulling main. |
|
Waiting for the react-fast-pdf PR. |
…act-fast-pdf-and-webpack
to support older browsers
heyjennahay
left a comment
There was a problem hiding this comment.
Product review not required
Explanation of Change
react-fast-pdf, which now uses a newer version ofreact-pdfthat fixes a crash when a PDF is replaced before the previous PDF has finished loading:webpackto fix a crash when importingpdf.js:pdf.jsto fixWorker was terminatederror printed in the console:Worker was terminatederror when loading is cancelled mozilla/pdf.js#20503pdf.jsto support older browsers.Fixed Issues
$ #76303
PROPOSAL: #76303 (comment)
Tests
Same as QA Steps.
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.native.mov
Android: mWeb Chrome
android.chrome.mov
iOS: Native
ios.native.mov
iOS: mWeb Safari
ios.safari.mov
MacOS: Chrome / Safari
macos.chrome.mov