Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump between pages not working #96

Open
JanRuettinger opened this issue Sep 13, 2023 · 0 comments
Open

Jump between pages not working #96

JanRuettinger opened this issue Sep 13, 2023 · 0 comments

Comments

@JanRuettinger
Copy link

JanRuettinger commented Sep 13, 2023

Issue:

Screenshot 2023-09-13 at 3 32 04 PM

This is an example from the docs. I can't get the "jump to page" motion to work. The user should be able to type in a page number (e.g. 7/30) and then the pdf viewer should jump to that page. That is not working.

I have created a simple dummy repo to reproduce the issue: https://github.com/JanRuettinger/react_pdf_viewer_error/tree/main

package.json

{
  "name": "react_pdf_viewer_test",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@react-pdf-viewer/core": "3.12.0",
    "@react-pdf-viewer/default-layout": "^3.12.0",
    "@react-pdf-viewer/page-navigation": "^3.12.0",
    "@react-pdf-viewer/selection-mode": "^3.12.0",
    "@react-pdf-viewer/toolbar": "^3.12.0",
    "@types/node": "20.6.0",
    "@types/react": "18.2.21",
    "@types/react-dom": "18.2.7",
    "autoprefixer": "10.4.15",
    "eslint": "8.49.0",
    "eslint-config-next": "13.4.19",
    "next": "13.4.19",
    "pdfjs-dist": "3.4.120",
    "postcss": "8.4.29",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "tailwindcss": "3.3.3",
    "typescript": "5.2.2"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant