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

New version does not include commonJS files for importing of Dist files #273

Open
bppdddqqqq opened this issue Jun 12, 2024 · 3 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bppdddqqqq
Copy link

New version of React-Doc-Viewer only contains header files and compiled [c]js in ~/dist/.

Motivation

We have custom PDF reader which has to stick to certain UI principles and we've used PDFContext component located formerly in '@cyntler/react-doc-viewer/dist/esm/renderers/pdf/state', but this pathing had changed entirely and we are unable to figure out where we can pull PDFContext now... or for that matter other components

@cyntler cyntler added bug Something isn't working help wanted Extra attention is needed labels Jun 15, 2024
@michael-vasyliv
Copy link

michael-vasyliv commented Jun 24, 2024

I have the same issue, it's not possible to import PDFProvider, PDFPages

@cyntler
Copy link
Owner

cyntler commented Jun 29, 2024

Now we have bundled all of the library to the one file to resolve problems with Next.js usage. All I can is just add additional export lines of those files in the index file. I think, you will be able to import then.

@michael-vasyliv
Copy link

@cyntler can you export all components?

  • PDFPages
  • PDFProvider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants