Skip to content

Commit

Permalink
fix(em): upgrade pdfjs-dist to fix build
Browse files Browse the repository at this point in the history
The React app build failed with the previous version of `pdfjs-dist` due to a dynamic require. See wojtekmaj/react-pdf#280 (comment). This commit updates it to the first version that fixed the problem (I've had issues with newer versions of `pdfjs-dist`, though we should try again at some point).
  • Loading branch information
eventualbuddha committed Mar 16, 2022
1 parent f6fa8ce commit aee03cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontends/election-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"node-fetch": "^2.6.0",
"normalize.css": "^8.0.1",
"pagedjs": "^0.1.40",
"pdfjs-dist": "2.3.200",
"pdfjs-dist": "2.4.456",
"pluralize": "^8.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
10 changes: 7 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aee03cc

Please sign in to comment.